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

Disassembly:
push 0xffffffffffffffff
push 0x40cc77
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 + 0x1c], 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 + 0x20], eax
push 0x4115c8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
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 0x409277
push str.Failed_to_validate_handle
call fcn.00407a82
mov edi, dword [esp + 0x60]
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [edi], ebx
mov eax, dword [esp + 0x10]
mov byte [esp + 0x54], 3
cmp eax, ebx
je 0x40924c
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 + 0x20]
push eax
call esi
cmp ebp, ebx
mov byte [esp + 0x54], 0
je 0x409270
mov ecx, dword [ebp]
push ebp
call dword [ecx + 8]
mov eax, edi
jmp 0x4094f7
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 0x4094b0
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 0x40949b
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [edx + 0xa4]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp edi, ebx
jne 0x4092e5
cmp eax, ebx
jne 0x40944d
jmp 0x409305
cmp eax, ebx
je 0x40944d
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
sete al
test al, al
je 0x40944d
mov esi, dword [esp + 0x68]
cmp esi, ebx
je 0x409630
cmp byte [esi], 0
je 0x409630
cmp ebp, ebx
je 0x409630
cmp byte [ebp], 0
je 0x409630
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 + 0x18], eax
je 0x40935d
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
push 0x411518
push ecx
call dword [edx]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40942d
push 0xffffffffffffffff
push esi
call fcn.00408b40
mov esi, eax
add esp, 8
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x18]
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 dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0xffffffffffffffff
push ebp
mov esi, eax
call fcn.00408b40
add esp, 8
cmp esi, ebx
mov edi, eax
jne 0x4093c0
cmp edi, ebx
jne 0x4093d6
mov bl, 1
jmp 0x4093d8
cmp edi, ebx
je 0x4093d6
push esi
push edi
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
sete bl
jmp 0x4093d8
xor bl, bl
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push esi
call edi
test bl, bl
jne 0x40950c
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.004091b0
mov eax, dword [esp + 0x30]
mov byte [esp + 0x54], 9
test eax, eax
jne 0x40959e
mov eax, dword [esp + 0x18]
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0x54], 6
je 0x40943c
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 0x409488
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.004091b0
mov eax, dword [esp + 0x34]
mov byte [esp + 0x54], 0xa
cmp eax, ebx
jne 0x40969d
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x54], 4
cmp eax, ebx
je 0x40949b
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 0x40929c
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x1c], 1
mov dword [esi], ebx
mov byte [esp + 0x54], 3
je 0x4094d1
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 + 0x20]
push ecx
call edi
cmp ebp, ebx
mov byte [esp + 0x54], 0
je 0x4094f5
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 0x40952b
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 1
test eax, eax
mov byte [esp + 0x54], 6
je 0x409546
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 0x409564
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x54], 3
test eax, eax
je 0x409577
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
call edi
mov ecx, dword [esp + 0x20]
push ecx
call edi
mov eax, dword [esp + 0x64]
mov byte [esp + 0x54], 0
test eax, eax
je 0x4094f5
mov edx, dword [eax]
push eax
jmp 0x4094f2
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 + 0x1c], 1
test eax, eax
mov byte [esp + 0x54], 7
je 0x4095c5
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x54], 6
test eax, eax
je 0x4095d8
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 0x4095f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x54], 3
test eax, eax
je 0x409609
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
call edi
mov ecx, dword [esp + 0x20]
push ecx
call edi
mov eax, dword [esp + 0x64]
mov byte [esp + 0x54], 0
test eax, eax
je 0x4094f5
mov edx, dword [eax]
push eax
jmp 0x4094f2
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x5c]
cmp eax, ebx
mov dword [ebp], eax
je 0x409649
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esp + 0x6c]
cmp eax, ebx
mov dword [esp + 0x1c], 1
mov byte [esp + 0x54], 4
je 0x409660
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x54], 3
cmp eax, ebx
je 0x409673
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
push edi
call esi
mov eax, dword [esp + 0x64]
mov byte [esp + 0x54], 0
cmp eax, ebx
je 0x409696
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebp
jmp 0x4094f7
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 + 0x1c], 1
cmp eax, ebx
mov byte [esp + 0x54], 5
je 0x4096c4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x54], 4
cmp eax, ebx
je 0x4096d7
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x54], 3
cmp eax, ebx
je 0x4096ea
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 + 0x20]
push eax
call edi
mov eax, dword [esp + 0x64]
mov byte [esp + 0x54], 0
cmp eax, ebx
je 0x4094f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4094f5