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

Disassembly:
push 0xffffffffffffffff
push 0x54b922
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5ab720]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [0x560d84]
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
mov edx, dword [0x560d8c]
xor ebp, ebp
cmp esi, ebp
mov edi, ecx
mov ecx, dword [0x560d88]
mov dword [esp + 0x5c], eax
mov eax, dword [0x560d90]
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
je 0x40b7e6
mov ecx, dword [esi]
mov eax, dword [ecx + 0x18]
lea edx, [esp + 0x44]
push edx
push esi
call eax
test eax, eax
jl 0x40b7e6
mov ecx, dword [esi]
mov eax, dword [ecx + 0x1c]
lea edx, [esp + 0x5c]
push edx
push esi
call eax
test eax, eax
jl 0x40b7e6
mov ecx, dword [esi]
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x18]
push edx
push esi
call eax
test eax, eax
jl 0x40b7e6
push 1
lea ecx, [edi + 0x3c]
call fcn.0050328d
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x40b7e6
mov eax, dword [esp + 0x44]
cmp eax, ebp
jne 0x40b415
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push 0x564e00
push esi
mov dword [esp + 0x20], ebp
xor edi, edi
call eax
test eax, eax
jl 0x40b7e6
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40b351
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebp
cmp esi, ebp
jl 0x40b7e6
cmp ebx, ebp
je 0x40b39b
mov eax, ebx
mov eax, dword [eax + 0x14]
mov ecx, 0x564f30
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b38d
cmp dx, bp
je 0x40b389
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b38d
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x40b367
xor eax, eax
jmp 0x40b392
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x40b39b
mov edi, 1
mov eax, dword [esp + 0x34]
cmp eax, 4
je 0x40b3b1
cmp eax, 3
je 0x40b3b1
cmp edi, ebp
je 0x40b778
mov eax, ebx
cmp eax, ebp
je 0x40b85d
mov eax, dword [eax + 0x14]
mov ecx, 0x564f30
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b3e9
cmp dx, bp
je 0x40b3e5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b3e9
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x40b3c3
xor eax, eax
jmp 0x40b3ee
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
mov edi, ebx
jne 0x40b402
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 8]
mov ecx, edi
call fcn.004a5160
mov edx, dword [esp + 0x18]
mov esi, edi
mov dword [edi + 0x48], edx
call fcn.004a50c0
jmp 0x40b85d
cmp eax, 1
jne 0x40b778
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push esi
mov dword [esp + 0x44], ebp
call edx
test eax, eax
jl 0x40b7e6
xor eax, eax
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x34], eax
jbe 0x40b778
jmp 0x40b454
mov esi, dword [esp + 0x38]
mov ecx, dword [esi]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x24]
push esi
call eax
test eax, eax
jl 0x40b763
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40b491
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebp
cmp esi, ebp
jl 0x40b763
lea eax, [esp + 0x4c]
push eax
push 0x564e50
call fcn.00405090
add esp, 8
test eax, eax
jne 0x40b4db
lea ecx, [esp + 0x4c]
push ecx
push 0x564e60
call fcn.00405090
add esp, 8
test eax, eax
jne 0x40b4db
lea edx, [esp + 0x4c]
push edx
push 0x564e70
call fcn.00405090
add esp, 8
test eax, eax
je 0x40b529
cmp ebx, ebp
jne 0x40b529
push 0xe4
call fcn.004fae94
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebp
mov dword [esp + 0x78], ebp
je 0x40b508
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 8]
push ecx
push eax
call fcn.004a34b0
jmp 0x40b50a
xor eax, eax
cmp eax, ebp
mov dword [esp + 0x78], 0xffffffff
mov ebx, eax
je 0x40b7c2
mov ecx, dword [esp + 0x28]
push eax
add ecx, 0x7c
call fcn.00503381
mov edi, dword [esp + 0x24]
cmp edi, ebp
je 0x40b57d
mov eax, dword [edi + 0x14]
mov ecx, 0x564f30
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b566
cmp dx, bp
je 0x40b562
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b566
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x40b540
xor eax, eax
jmp 0x40b56b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x40b57d
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 8]
mov ecx, edi
call fcn.004a5160
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x48], ebp
call eax
push 0x564f30
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00404670
cmp esi, ebp
mov edi, 1
mov dword [esp + 0x78], edi
jl 0x40b5c8
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.00410cd0
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esp + 0x4c]
push eax
push 0x564e50
call fcn.00405090
add esp, 8
test eax, eax
je 0x40b5ed
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
jmp 0x40b752
lea ecx, [esp + 0x4c]
push ecx
push 0x564e60
call fcn.00405090
add esp, 8
test eax, eax
je 0x40b680
mov esi, dword [esp + 0x14]
call fcn.004a3f20
test eax, eax
je 0x40b61c
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x38], ebp
jmp 0x40b74c
mov esi, dword [esp + 0x14]
call fcn.004a42a0
test eax, eax
je 0x40b631
mov dword [ebx + 0xd0], edi
jmp 0x40b666
mov esi, dword [esp + 0x14]
call fcn.004a4380
test eax, eax
jne 0x40b660
mov esi, dword [esp + 0x14]
call fcn.004a4460
test eax, eax
jne 0x40b660
mov esi, dword [esp + 0x14]
call fcn.004a40e0
test eax, eax
je 0x40b666
mov dword [ebx + 0xd8], edi
jmp 0x40b666
mov dword [ebx + 0xd4], edi
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edi
mov edi, dword [esp + 0x14]
mov eax, ebx
call fcn.004a4b40
jmp 0x40b752
lea edx, [esp + 0x4c]
push edx
push 0x564e70
call fcn.00405090
add esp, 8
test eax, eax
je 0x40b6b2
mov esi, dword [esp + 0x14]
call fcn.004a3f20
test eax, eax
je 0x40b6b2
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x28], eax
jmp 0x40b752
lea eax, [esp + 0x4c]
push eax
push 0x564e70
call fcn.00405090
add esp, 8
test eax, eax
je 0x40b6e1
mov esi, dword [esp + 0x14]
call fcn.004a4000
test eax, eax
je 0x40b6e1
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x3c], eax
jmp 0x40b752
lea ecx, [esp + 0x4c]
push ecx
push 0x564e70
call fcn.00405090
add esp, 8
test eax, eax
je 0x40b720
mov esi, dword [esp + 0x14]
call fcn.004a41c0
test eax, eax
je 0x40b720
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov dword [ebx + 0xdc], edi
mov dword [ebx + 0xe0], eax
mov dword [edx + 0x154], edi
jmp 0x40b752
lea eax, [esp + 0x4c]
push eax
push 0x564e80
call fcn.00405090
add esp, 8
test eax, eax
je 0x40b752
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x30], ebp
je 0x40b752
cmp dword [eax + 0x78], 4
jne 0x40b752
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.00401640
mov eax, dword [esp + 0x34]
add eax, 1
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
jb 0x40b450
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 0x24], ebp
mov eax, dword [esp + 0x38]
je 0x40b794
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push eax
call edx
jmp 0x40b7a1
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
cmp eax, ebp
jl 0x40b85d
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jge 0x40b7ea
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40b7d6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x40b7e6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x40b862
xor edi, edi
cmp dword [esp + 0x30], ebp
jbe 0x40b85d
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebp
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x40b854
cmp dword [esp + 0x30], 1
ja 0x40b82d
lea ecx, [esp + 0x5c]
push 0x564e90
push ecx
call fcn.00405090
add esp, 8
test eax, eax
jne 0x40b82d
mov eax, ebx
jmp 0x40b82f
xor eax, eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push eax
push edx
call fcn.0040b220
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40b850
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebp
je 0x40b7e6
add edi, 1
cmp edi, dword [esp + 0x30]
jb 0x40b7f2
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0052151a
add esp, 0x68
ret 8