Function at 0x40bf30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40d107
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x60]
mov esi, 1
push 0xffffffffffffffff
push eax
mov dword [esp + 0x5c], esi
call fcn.00408b40
add esp, 8
mov dword [esp + 0x18], eax
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x4115c8
call edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov ebp, dword [esp + 0x64]
lea edx, [esp + 0x10]
mov dword [esp + 0x24], ebx
push edx
mov ecx, dword [ebp]
push ebp
mov byte [esp + 0x5c], 4
call dword [ecx + 0x30]
cmp eax, ebx
jge 0x40bff9
push str.Failed_to_validate_handle
call fcn.00407a82
mov edi, dword [esp + 0x60]
add esp, 4
mov dword [esp + 0x20], esi
mov dword [edi], ebx
mov eax, dword [esp + 0x10]
mov byte [esp + 0x54], 3
cmp eax, ebx
je 0x40bfce
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
cmp ebp, ebx
mov byte [esp + 0x54], 0
je 0x40bff2
mov ecx, dword [ebp]
push ebp
call dword [ecx + 8]
mov eax, edi
jmp 0x40c273
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x2c], esi
jle 0x40c22c
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
push ecx
push esi
mov edx, dword [eax]
push eax
mov byte [esp + 0x60], 5
call dword [edx + 0x1c]
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x40c217
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [edx + 0xa4]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp ecx, ebx
jne 0x40c067
cmp eax, ebx
jne 0x40c1c9
jmp 0x40c087
cmp eax, ebx
je 0x40c1c9
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
sete al
test al, al
je 0x40c1c9
mov esi, dword [esp + 0x68]
cmp esi, ebx
je 0x40c3ac
cmp byte [esi], 0
je 0x40c3ac
cmp ebp, ebx
je 0x40c3ac
cmp word [ebp], bx
je 0x40c3ac
mov word [esp + 0x3c], 3
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x6c]
xor eax, eax
cmp ecx, ebx
mov byte [esp + 0x54], 6
mov dword [esp + 0x1c], eax
je 0x40c0df
mov edx, dword [ecx]
lea eax, [esp + 0x1c]
push eax
push 0x411518
push ecx
call dword [edx]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40c1a9
push 0xffffffffffffffff
push esi
call fcn.00408b40
mov esi, eax
add esp, 8
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push edx
push esi
mov ecx, dword [eax]
push eax
mov byte [esp + 0x60], 8
call dword [ecx + 0xb0]
push esi
mov byte [esp + 0x58], 7
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x44]
push eax
call edi
push ebp
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
jne 0x40c136
cmp edi, ebx
jne 0x40c14c
mov bl, 1
jmp 0x40c14e
cmp edi, ebx
je 0x40c14c
push esi
push edi
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
sete bl
jmp 0x40c14e
xor bl, bl
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push esi
call edi
test bl, bl
jne 0x40c288
mov ecx, dword [esp + 0x68]
push ebp
push ecx
push ecx
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.0040c520
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.0040bf30
mov eax, dword [esp + 0x30]
mov byte [esp + 0x54], 9
test eax, eax
jne 0x40c31a
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0x54], 6
je 0x40c1b8
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [esp + 0x2c]
jmp 0x40c204
mov ecx, dword [esp + 0x68]
push ebp
push ecx
push ecx
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.0040c520
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.0040bf30
mov eax, dword [esp + 0x34]
mov byte [esp + 0x54], 0xa
cmp eax, ebx
jne 0x40c41c
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x54], 4
cmp eax, ebx
je 0x40c217
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov dword [esp + 0x2c], esi
jl 0x40c01e
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x20], 1
mov dword [esi], ebx
mov byte [esp + 0x54], 3
je 0x40c24d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call edi
mov ecx, dword [esp + 0x18]
push ecx
call edi
cmp ebp, ebx
mov byte [esp + 0x54], 0
je 0x40c271
mov edx, dword [ebp]
push ebp
call dword [edx + 8]
mov eax, esi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret 0x14
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x5c]
mov edx, dword [eax + 0x1c]
inc edx
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x6c]
test eax, eax
mov dword [esi], eax
je 0x40c2a7
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 1
test eax, eax
mov byte [esp + 0x54], 6
je 0x40c2c2
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x54], 4
test eax, eax
je 0x40c2e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x54], 3
test eax, eax
je 0x40c2f3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
call edi
mov ecx, dword [esp + 0x18]
push ecx
call edi
mov eax, dword [esp + 0x64]
mov byte [esp + 0x54], 0
test eax, eax
je 0x40c271
mov edx, dword [eax]
push eax
jmp 0x40c26e
mov esi, dword [esp + 0x5c]
push eax
mov dword [esi], eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], 1
test eax, eax
mov byte [esp + 0x54], 7
je 0x40c341
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x54], 6
test eax, eax
je 0x40c354
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x54], 4
test eax, eax
je 0x40c372
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x54], 3
test eax, eax
je 0x40c385
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
call edi
mov ecx, dword [esp + 0x18]
push ecx
call edi
mov eax, dword [esp + 0x64]
mov byte [esp + 0x54], 0
test eax, eax
je 0x40c271
mov edx, dword [eax]
push eax
jmp 0x40c26e
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x5c]
cmp eax, ebx
mov dword [edi], eax
je 0x40c3c4
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esp + 0x6c]
cmp eax, ebx
mov dword [esp + 0x20], 1
mov byte [esp + 0x54], 4
je 0x40c3db
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x54], 3
cmp eax, ebx
je 0x40c3ee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov eax, dword [esp + 0x64]
mov byte [esp + 0x54], 0
cmp eax, ebx
je 0x40c415
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x40c273
mov esi, dword [esp + 0x5c]
push eax
mov dword [esi], eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], 1
cmp eax, ebx
mov byte [esp + 0x54], 5
je 0x40c443
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x54], 4
cmp eax, ebx
je 0x40c456
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x54], 3
cmp eax, ebx
je 0x40c469
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
mov eax, dword [esp + 0x64]
mov byte [esp + 0x54], 0
cmp eax, ebx
je 0x40c271
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40c271