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

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x2c], 0
push ebp
push esi
push edi
mov byte [esp + 0xf], 0
ja 0x40fb1d
cmp dword [esp + 0x34], 0
jbe 0x40fc9e
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
sbb eax, dword [esp + 0x28]
mov esi, dword [ebx + 0x184]
xor edx, edx
cmp eax, edx
jb 0x40fb49
ja 0x40fb3f
cmp ecx, esi
jbe 0x40fb49
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
jmp 0x40fb51
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x180]
mov dword [esp + 0x10], eax
mov byte [esp + 0xe], dl
nop
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov ecx, esi
sub ecx, edi
mov eax, edx
sbb eax, ebp
cmp eax, dword [esp + 0x1c]
ja 0x40fb9b
jb 0x40fb86
cmp ecx, dword [esp + 0x18]
jae 0x40fb9b
mov dword [esp + 0x18], ecx
or ecx, eax
mov dword [esp + 0x1c], eax
je 0x40fc9e
mov byte [esp + 0xe], 1
cmp byte [esp + 0x40], 0
je 0x40fbae
mov edi, esi
sub edi, dword [esp + 0x18]
mov ebp, edx
sbb ebp, dword [esp + 0x1c]
cmp dword [ebx + 0x78], 0
mov edx, edi
mov esi, ebp
jne 0x40fbd4
mov eax, dword [ebx + 0x84]
mov ecx, dword [ebx + 0x80]
test eax, eax
ja 0x40fbcc
test ecx, ecx
jbe 0x40fbd4
add ecx, edi
adc eax, ebp
mov edx, ecx
mov esi, eax
push esi
mov esi, dword [ebx + 0x40]
push edx
mov al, 1
call fcn.0040a050
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x40]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push eax
mov eax, dword [esp + 0x14]
push eax
call edx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40fc9e
cmp byte [esp + 0x40], 0
je 0x40fc11
add edi, dword [esp + 0x34]
adc ebp, dword [esp + 0x38]
jmp 0x40fc19
sub edi, dword [esp + 0x34]
sbb ebp, dword [esp + 0x38]
cmp dword [ebx + 0x78], 0
jne 0x40fc3b
mov eax, dword [ebx + 0x84]
mov ecx, dword [ebx + 0x80]
test eax, eax
ja 0x40fc33
test ecx, ecx
jbe 0x40fc3b
add ecx, edi
adc eax, ebp
mov edi, ecx
mov ebp, eax
mov esi, dword [ebx + 0x40]
push ebp
push edi
mov al, 1
call fcn.0040a050
mov ecx, dword [ebx + 0x40]
mov esi, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0x30]
push esi
push edx
call eax
xor ecx, ecx
mov eax, esi
cmp byte [esp + 0x40], cl
je 0x40fc6f
sub dword [esp + 0x2c], eax
sbb dword [esp + 0x30], ecx
jmp 0x40fc77
add dword [esp + 0x24], eax
adc dword [esp + 0x28], ecx
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x40fc8a
push ecx
push eax
call fcn.0040d710
test al, al
je 0x40fc97
cmp byte [esp + 0xe], 0
je 0x40fb60
jmp 0x40fca2
mov byte [esp + 0xf], 1
jmp 0x40fca2
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x40fcd8
cmp byte [esp + 0xf], 0
jne 0x40fcc1
cmp byte [esp + 0x44], 0
je 0x40fcd8
push 0
push 0
call fcn.0040d780
test al, al
jne 0x40fcd8
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
push 0
push 0xce
mov ecx, ebx
call fcn.0040e150
cmp dword [esp + 0x38], 0
ja 0x40fce6
cmp dword [esp + 0x34], 0
jbe 0x40fd08
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x2c], ecx
jne 0x40fcfa
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x30], edx
je 0x40fd08
push 0
push 0xd7
mov ecx, ebx
call fcn.0040e150
pop edi
pop esi
pop ebp
add esp, 0x14
ret 0x24