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

Disassembly:
push 0xffffffffffffffff
push 0x479dd5
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x4947a0]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4947a0]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [esp + 0x110]
mov ebp, dword [esp + 0x14c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x11c]
mov dword [esp + 0x110], 1
push ecx
lea ecx, [esp + 0xb4]
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
call fcn.00401910
mov byte [esp + 0x108], 2
mov dword [esp + 0x60], ebp
cmp ebp, ebx
je 0x40b5f7
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push ebp
call eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x108], 4
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x20]
lea edx, [esp + 0x14]
push edx
push ebp
call eax
cmp eax, ebx
jl 0x40b943
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40b947
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jl 0x40b943
xor edi, edi
cmp dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
jle 0x40b943
lea ebx, [ebx]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x3c]
push ecx
call esi
lea edx, [esp + 0x4c]
push edx
call esi
mov byte [esp + 0x108], 8
cmp word [esp + 0x3c], 3
je 0x40b691
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, 3
mov word [esp + 0x3c], cx
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x64]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x68]
mov dword [eax + 8], ebp
mov ebp, dword [esp + 0x6c]
mov dword [eax + 0xc], ebp
mov ebp, dword [esp + 0x50]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x64]
mov ecx, edi
mov dword [esp + 0x68], ecx
mov esi, dword [edx]
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esi + 0x2c]
mov dword [eax + 0xc], ecx
call edx
test eax, eax
jl 0x40b8ec
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40b8ec
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x483138
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40b8ec
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40b8ec
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
test eax, eax
jl 0x40b8ec
mov ebx, dword [esp + 0x38]
lea esi, [esp + 0xc4]
call fcn.0040eac0
mov byte [esp + 0x108], 9
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ebx, [esp + 0x68]
lea edi, [esp + 0xa8]
call fcn.0040ce40
lea ebx, [esp + 0x78]
mov esi, eax
call fcn.0040ce90
lea ebx, [esp + 0x88]
mov ebp, eax
call fcn.0040ce40
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
mov edx, dword [ebp + 4]
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0xb8]
push fcn.0045ea02
push ecx
call fcn.0040d9f0
add esp, 0x20
lea ebx, [esp + 0x80]
lea edi, [esp + 0xc4]
call fcn.0040ce40
lea ebx, [esp + 0x98]
mov esi, eax
call fcn.0040ce90
lea ebx, [esp + 0x90]
mov ebp, eax
call fcn.0040ce40
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
mov edx, dword [ebp + 4]
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x88]
push fcn.0045ea02
push ecx
call fcn.0040d9f0
add esp, 0x20
mov eax, edi
lea edx, [esp + 0xa8]
call fcn.0040d990
test al, al
je 0x40b8da
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0xf8]
lea ecx, [esp + 0x2c]
push ecx
push eax
call edx
mov ebx, dword [esp + 0x2c]
lea esi, [esp + 0xe0]
call fcn.0040eac0
mov bl, 0xa
mov byte [esp + 0x108], bl
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
sub esp, 0x1c
mov edx, esi
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.00406900
sub esp, 0x1c
lea eax, [esp + 0x168]
mov ecx, esp
mov dword [esp + 0x9c], esp
push eax
mov byte [esp + 0x144], 0xb
call fcn.00406900
mov byte [esp + 0x140], bl
call fcn.00411f70
add esp, 0x38
test eax, eax
je 0x40b8ce
push 0x30
call fcn.0043968c
mov ebx, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x40b8bc
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov edi, dword [esp + 0x18]
push edx
push ecx
mov esi, eax
call fcn.00401e20
jmp 0x40b8be
xor eax, eax
lea edi, [ebx + 0x20]
lea ebx, [esp + 0x28]
mov dword [esp + 0x28], eax
call fcn.0040d100
lea ecx, [esp + 0xe0]
call fcn.00401df0
lea ecx, [esp + 0xc4]
call fcn.00401df0
mov edi, dword [esp + 0x34]
xor ebx, ebx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x4c]
push eax
call esi
lea ecx, [esp + 0x3c]
push ecx
call esi
mov byte [esp + 0x108], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40b91c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x108], 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40b934
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
inc edi
cmp edi, dword [esp + 0x30]
mov dword [esp + 0x34], edi
jl 0x40b650
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx + 0x30]
sub esi, dword [ecx + 0x2c]
mov byte [esp + 0x108], 3
sar esi, 2
cmp eax, ebx
je 0x40b968
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x108], 2
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
mov edi, 0x10
cmp dword [esp + 0xc0], edi
jb 0x40b997
mov edx, dword [esp + 0xac]
push edx
call fcn.004396bc
add esp, 4
mov ebp, 0xf
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
cmp dword [esp + 0x12c], edi
jb 0x40b9ca
mov eax, dword [esp + 0x118]
push eax
call fcn.004396bc
add esp, 4
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], bl
cmp dword [esp + 0x148], edi
jb 0x40b9f8
mov ecx, dword [esp + 0x134]
push ecx
call fcn.004396bc
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.0045e1a6
add esp, 0xf8
ret 0x40