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

Disassembly:
sub esp, 0x1c
cmp dword [esp + 0x38], 0
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x13], 0
ja 0x40b09e
cmp dword [esp + 0x44], 0
jbe 0x40b2f7
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
sbb eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x30]
mov esi, dword [ebp + 0x184]
xor edx, edx
cmp eax, edx
jb 0x40b0ce
ja 0x40b0c4
cmp ecx, esi
jbe 0x40b0ce
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
jmp 0x40b0d6
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x180]
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], dl
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ecx, esi
sub ecx, ebx
mov eax, edx
sbb eax, edi
cmp eax, dword [esp + 0x20]
ja 0x40b11f
jb 0x40b10a
cmp ecx, dword [esp + 0x1c]
jae 0x40b11f
mov dword [esp + 0x1c], ecx
or ecx, eax
mov dword [esp + 0x20], eax
je 0x40b2fb
mov byte [esp + 0x12], 1
cmp byte [esp + 0x50], 0
je 0x40b132
sub esi, dword [esp + 0x1c]
mov edi, edx
sbb edi, dword [esp + 0x20]
jmp 0x40b134
mov esi, ebx
cmp dword [ebp + 0x78], 0
mov edx, esi
mov dword [esp + 0x24], edx
mov ebx, edi
jne 0x40b162
mov eax, dword [ebp + 0x84]
mov ecx, dword [ebp + 0x80]
test eax, eax
ja 0x40b156
test ecx, ecx
jbe 0x40b162
add ecx, esi
adc eax, edi
mov dword [esp + 0x24], ecx
mov ebx, eax
mov edx, ecx
mov ebp, dword [ebp + 0x40]
cmp ebx, 0x7fffffff
jb 0x40b1ce
ja 0x40b174
cmp edx, 0xffffffff
jbe 0x40b1ce
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
sub eax, dword [esp + 0x24]
push 2
sbb edx, ebx
mov ebx, dword [ebp]
neg eax
adc edx, 0
neg edx
push edx
push eax
mov eax, dword [ebx + 0x10]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x40]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push eax
mov eax, dword [esp + 0x18]
push eax
call edx
mov dword [esp + 0x18], eax
test eax, eax
je 0x40b2f7
cmp byte [esp + 0x50], 0
je 0x40b1de
add esi, dword [esp + 0x44]
adc edi, dword [esp + 0x48]
jmp 0x40b1e6
mov eax, dword [ebp]
push 0
push ebx
push edx
mov edx, dword [eax + 0x10]
mov ecx, ebp
call edx
jmp 0x40b199
sub esi, dword [esp + 0x44]
sbb edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x30]
cmp dword [ebx + 0x78], 0
mov ebp, esi
jne 0x40b20e
mov eax, dword [ebx + 0x84]
mov ecx, dword [ebx + 0x80]
test eax, eax
ja 0x40b206
test ecx, ecx
jbe 0x40b20e
add ecx, esi
adc eax, edi
mov ebp, ecx
mov edi, eax
mov esi, dword [ebx + 0x40]
cmp edi, 0x7fffffff
jb 0x40b269
ja 0x40b220
cmp ebp, 0xffffffff
jbe 0x40b269
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
sub eax, ebp
sbb edx, edi
mov edi, dword [esi]
neg eax
adc edx, 0
push 2
neg edx
push edx
push eax
mov eax, dword [edi + 0x10]
mov ecx, esi
call eax
mov ecx, dword [ebx + 0x40]
mov esi, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x30]
push esi
push eax
call edx
xor ecx, ecx
mov eax, esi
cmp byte [esp + 0x50], cl
je 0x40b278
sub dword [esp + 0x3c], eax
sbb dword [esp + 0x40], ecx
jmp 0x40b280
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push 0
push edi
push ebp
mov ecx, esi
call edx
jmp 0x40b241
add dword [esp + 0x34], eax
adc dword [esp + 0x38], ecx
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x40b2a5
mov edx, eax
or edx, ecx
je 0x40b2a5
mov edx, dword [esi + 0x54]
cmp edx, 1
jne 0x40b2b3
mov edx, dword [esi]
push ecx
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
test al, al
je 0x40b2ee
cmp byte [esp + 0x12], 0
mov ebp, ebx
jne 0x40b2ff
jmp 0x40b0e4
add dword [esi + 0x60], eax
mov eax, dword [esi + 0x58]
adc dword [esi + 0x64], ecx
cmp eax, edx
jl 0x40b2e8
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x60]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
push eax
push ecx
mov ecx, esi
call edx
mov dword [esi + 0x58], 1
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
jmp 0x40b2a1
inc eax
mov dword [esi + 0x58], eax
jmp 0x40b2a5
mov byte [esp + 0x13], 1
mov ebp, ebx
jmp 0x40b2ff
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x4c]
xor edi, edi
cmp esi, edi
je 0x40b35b
cmp byte [esp + 0x13], 0
jne 0x40b343
cmp byte [esp + 0x54], 0
je 0x40b35b
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
mov edx, eax
or edx, ecx
jne 0x40b323
mov al, 1
jmp 0x40b332
mov edx, dword [esi]
push ecx
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov ebp, dword [esp + 0x30]
mov dword [esi + 0x58], 1
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
test al, al
jne 0x40b35b
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x30]
push edi
push 0xce
call fcn.004097d0
cmp dword [esp + 0x48], edi
ja 0x40b367
cmp dword [esp + 0x44], edi
jbe 0x40b388
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x3c], ecx
jne 0x40b37b
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x40], edx
je 0x40b388
push edi
push 0xd7
mov ecx, ebp
call fcn.004097d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x28