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

Disassembly:
push 0xffffffffffffffff
push 0x44dd3b
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4628d0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov dword [esp + 0x30], ecx
xor esi, esi
mov dword [esp + 0x6c], esi
call fcn.004108c4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40b8db
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x6c], 1
call fcn.004108c4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40b90a
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x6c], 2
call fcn.004108c4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40b939
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push fcn.00403a60
push fcn.00403c20
push 6
push 4
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0x80], 3
mov dword [esp + 0x38], esi
call fcn.0042c82a
mov byte [esp + 0x6c], 4
call fcn.004108c4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40b98c
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
call fcn.004108c4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40b9b6
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x6c], 5
jmp 0x40b9d0
mov eax, dword [esp + 0x74]
cmp dword [eax - 0xc], esi
jl 0x40ba08
push 0x451cfc
push eax
call fcn.0042c196
add esp, 8
cmp eax, esi
je 0x40ba08
sub eax, dword [esp + 0x74]
sar eax, 1
cmp eax, 0xffffffff
je 0x40ba08
push 0x451770
inc eax
push eax
lea ecx, [esp + 0x7c]
call fcn.00405320
jmp 0x40b9d0
lea ecx, [esp + 0x28]
push ecx
push 0x451cf8
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x80]
mov dword [esp + 0x34], esi
call fcn.00409640
mov byte [esp + 0x6c], 6
lea edi, [esp + 0x4c]
cmp dword [esp + 0x28], 0xffffffff
je 0x40bb4c
mov ecx, dword [esp + 0x14]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40ba8f
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x40ba83
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40ba83
push eax
call fcn.00403ba0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x40ba7c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [edi], ebx
jmp 0x40ba8f
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00403830
mov ecx, edi
call fcn.00405450
mov ecx, edi
call fcn.00405900
inc dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
push 0x451cf8
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x80]
add edi, 4
call fcn.00409640
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [esp + 0x6c], 7
cmp eax, esi
je 0x40bb1c
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x40bb0e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40bb0e
push eax
call fcn.00403ba0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x40bb05
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x40bb1c
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403830
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], 6
jl 0x40ba30
mov ecx, dword [esp + 0x54]
push 0xa
push 0
push ecx
call fcn.0042c7d3
mov edx, dword [esp + 0x64]
push 0xa
push 0
push edx
mov esi, eax
call fcn.0042c7d3
push 0xa
mov edi, eax
mov eax, dword [esp + 0x78]
push 0
push eax
call fcn.0042c7d3
mov ecx, dword [esp + 0x84]
push 0x10
push 0
push ecx
mov ebp, eax
call fcn.0042c7d3
add esp, 0x30
cmp dword [esp + 0x24], 6
mov ebx, eax
je 0x40bcbd
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bbc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bbe7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push fcn.00403a60
push 6
push 4
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x7c], 3
call fcn.0042c576
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bc44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x6c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bcb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40bec5
test esi, esi
je 0x40bd25
cmp esi, 1
je 0x40bd25
cmp esi, 2
je 0x40bd25
cmp esi, 3
je 0x40bd25
lea ecx, [esp + 0x14]
call fcn.00403a60
lea ecx, [esp + 0x34]
call fcn.00403d00
push fcn.00403a60
push 6
push 4
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x7c], 3
call fcn.0042c576
lea ecx, [esp + 0x18]
call fcn.00403a60
lea ecx, [esp + 0x1c]
call fcn.00403a60
lea ecx, [esp + 0x20]
call fcn.00403a60
lea ecx, [esp + 0x74]
call fcn.00403a60
xor eax, eax
jmp 0x40bec5
test edi, edi
je 0x40bd61
cmp edi, 1
je 0x40bd61
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bd53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
call fcn.00403d00
jmp 0x40bc07
test ebp, ebp
je 0x40bd85
cmp ebp, 1
je 0x40bd85
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40bd47
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00403dd0
mov edx, dword [esp + 0x50]
cmp dword [edx - 0xc], 0
je 0x40bda4
lea eax, [esp + 0x50]
push eax
jmp 0x40bda9
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00403dd0
xor edx, edx
cmp edi, 1
sete dl
xor eax, eax
cmp ebp, 1
sete al
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
add ecx, 0x74
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
call fcn.0040b310
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40be08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
call fcn.00403d00
push fcn.00403a60
push 6
push 4
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x7c], 3
call fcn.0042c576
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40be4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40be73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40be98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bec0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 4