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

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
xor esi, esi
mov ebx, edx
push edi
mov dword [esp + 0x10], ebx
mov ebp, ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x58]
dec edx
jne 0x40b249
cmp dword [esp + 0x58], ebx
jne 0x40b274
mov eax, dword [esp + 0x128]
mov dword [eax], esi
mov eax, dword [esp + 0x12c]
mov dword [eax], esi
xor eax, eax
jmp 0x40b625
mov eax, dword [esp + 0x12c]
xor ecx, ecx
push 0xf
inc ecx
pop edx
mov ebx, dword [eax]
cmp dword [esp + ecx*4 + 0x58], esi
jne 0x40b28e
inc ecx
cmp ecx, edx
jbe 0x40b283
cmp ebx, ecx
mov dword [esp + 0x1c], ecx
cmovb ebx, ecx
cmp dword [esp + edx*4 + 0x58], esi
jne 0x40b2a0
dec edx
jne 0x40b297
cmp ebx, edx
mov dword [esp + 0x40], edx
cmova ebx, edx
xor edi, edi
inc edi
mov dword [esp + 0x24], ebx
mov dword [eax], ebx
shl edi, cl
jmp 0x40b2c3
sub edi, dword [esp + ecx*4 + 0x58]
js 0x40b4b3
inc ecx
add edi, edi
cmp ecx, edx
jb 0x40b2b6
mov ecx, edx
shl ecx, 2
mov dword [esp + 0x30], ecx
mov eax, dword [esp + ecx + 0x58]
sub edi, eax
mov dword [esp + 0x4c], edi
js 0x40b4b3
add eax, edi
mov dword [esp + 0x9c], esi
mov dword [esp + ecx + 0x58], eax
mov ecx, esi
dec edx
je 0x40b305
mov eax, esi
add ecx, dword [esp + eax + 0x5c]
lea eax, [eax + 4]
mov dword [esp + eax + 0x9c], ecx
dec edx
jne 0x40b2f4
mov eax, dword [esp + 0x10]
mov ecx, esi
mov ebx, dword [esp + 0x138]
mov edx, dword [ebp]
lea ebp, [ebp + 4]
test edx, edx
je 0x40b332
mov eax, dword [esp + edx*4 + 0x98]
mov dword [ebx + eax*4], ecx
inc eax
mov dword [esp + edx*4 + 0x98], eax
mov eax, dword [esp + 0x10]
inc ecx
cmp ecx, eax
jb 0x40b312
mov eax, dword [esp + 0x30]
mov ebp, ebx
mov ebx, dword [esp + 0x24]
mov edx, ebx
or dword [esp + 0x18], 0xffffffff
neg edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + eax + 0x98]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0xdc], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
cmp ecx, eax
jg 0x40b617
lea eax, [esp + 0x58]
lea eax, [eax + ecx*4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x40b601
lea ebp, [eax + 1]
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x20]
dec eax
dec dword [esp + 0x44]
mov dword [esp + 0x30], eax
lea eax, [edx + ebx]
cmp ecx, eax
jle 0x40b4df
sub edx, ebx
mov ebp, edx
inc dword [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x40]
add ebp, ebx
sub eax, edx
mov dword [esp + 0x48], ebp
cmp eax, ebx
mov dword [esp + 0x54], edx
cmova eax, ebx
xor ebp, ebp
sub ecx, edx
mov dword [esp + 0x10], eax
inc ebp
shl ebp, cl
cmp ebp, dword [esp + 0x44]
jbe 0x40b427
or eax, 0xffffffff
sub eax, dword [esp + 0x30]
add ebp, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
cmp ecx, eax
jae 0x40b427
inc ecx
cmp ecx, eax
jae 0x40b427
mov esi, dword [esp + 0x14]
add ebp, ebp
lea esi, [esi + 4]
cmp ebp, dword [esi]
jbe 0x40b425
sub ebp, dword [esi]
inc ecx
cmp ecx, eax
jb 0x40b415
xor esi, esi
mov eax, dword [esp + 0x134]
xor ebp, ebp
inc ebp
shl ebp, cl
mov dword [esp + 0x10], ebp
mov eax, dword [eax]
add ebp, eax
cmp ebp, 0x5a0
ja 0x40b4b3
mov ebx, dword [esp + 0x130]
lea eax, [ebx + eax*8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov dword [esp + eax*4 + 0xdc], ebx
mov ebx, dword [esp + 0x134]
mov dword [ebx], ebp
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x40b4bb
mov ebp, dword [esp + 0x2c]
mov edx, ebp
mov dword [esp + eax*4 + 0x98], ebp
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x38], cl
mov ecx, dword [esp + 0x48]
shr edx, cl
mov ecx, dword [esp + eax*4 + 0xd8]
sub ebp, ecx
sar ebp, 3
sub ebp, edx
mov byte [esp + 0x39], bl
mov eax, dword [esp + 0x38]
mov dword [ecx + edx*8], eax
mov dword [ecx + edx*8 + 4], ebp
mov edx, dword [esp + 0x54]
mov dword [esp + 0x28], ebp
jmp 0x40b4c8
push 0xfffffffffffffffd
pop eax
jmp 0x40b625
mov ecx, dword [esp + 0x128]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
lea eax, [edx + ebx]
mov ebp, dword [esp + 0x48]
cmp ecx, eax
jg 0x40b3c7
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x50]
mov al, cl
sub al, dl
mov byte [esp + 0x39], al
mov eax, dword [esp + 0x138]
lea eax, [eax + ebx*4]
cmp ebp, eax
jb 0x40b500
mov byte [esp + 0x38], 0xc0
jmp 0x40b554
mov eax, dword [ebp]
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x11c]
jae 0x40b522
cmp eax, 0x100
setb al
dec al
and al, 0x60
mov byte [esp + 0x38], al
jmp 0x40b54d
sub eax, dword [esp + 0x11c]
mov ecx, eax
mov eax, dword [esp + 0x124]
mov al, byte [eax + ecx*4]
add al, 0x50
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x120]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
add ebp, 4
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x2c]
xor ebp, ebp
mov ebx, dword [esp + 0x24]
sub ecx, edx
inc ebp
shl ebp, cl
mov ecx, edx
shr eax, cl
cmp eax, dword [esp + 0x10]
jae 0x40b59a
mov ecx, dword [esp + 0x14]
mov esi, ebp
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
shl esi, 3
lea ecx, [ecx + eax*8]
mov dword [ecx], edi
add eax, ebp
mov dword [ecx + 4], ebx
add ecx, esi
cmp eax, dword [esp + 0x10]
jb 0x40b581
mov ebx, dword [esp + 0x24]
xor esi, esi
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov ebp, dword [esp + 0x2c]
dec ecx
inc eax
shl eax, cl
jmp 0x40b5ae
xor ebp, eax
shr eax, 1
test ebp, eax
jne 0x40b5aa
xor ebp, eax
mov ecx, edx
xor eax, eax
mov dword [esp + 0x2c], ebp
inc eax
shl eax, cl
mov ecx, dword [esp + 0x18]
dec eax
and eax, ebp
cmp eax, dword [esp + ecx*4 + 0x98]
je 0x40b5ed
mov esi, ecx
xor eax, eax
sub edx, ebx
inc eax
mov ecx, edx
shl eax, cl
dec esi
dec eax
and eax, ebp
cmp eax, dword [esp + esi*4 + 0x98]
jne 0x40b5d1
mov dword [esp + 0x18], esi
xor esi, esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test eax, eax
jne 0x40b3af
add dword [esp + 0x34], 4
inc ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jle 0x40b396
test edi, edi
je 0x40b623
cmp eax, 1
je 0x40b623
push 0xfffffffffffffffb
pop esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0x20