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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0xc], eax
xor edx, edx
push esi
push edi
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 0x94]
div dword [ebx + 0x98]
or byte [ebx + 0x14], 4
mov ebp, dword [ebp + 0x18]
mov edx, eax
mov esi, dword [ebx + 0x18]
neg eax
lea edi, [ebp - 1]
and edi, eax
inc edi
mov dword [esp + 0x20], edi
cmp ebp, esi
jbe 0x43f449
sub ebp, edi
inc ebp
jmp 0x43f45b
lea eax, [edx - 1]
add eax, edi
cmp eax, esi
jbe 0x43f459
mov ebp, esi
sub ebp, edi
inc ebp
jmp 0x43f45b
mov ebp, edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
jle 0x43f64e
mov esi, edi
lea esp, [esp]
test ecx, ecx
jne 0x43f64e
mov eax, dword [esp + 0x28]
cmp esi, dword [eax + 0x18]
je 0x43f513
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x43f513
push esi
push eax
call fcn.0044df50
add esp, 8
test eax, eax
je 0x43f50f
mov eax, dword [ebx + 0xd4]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x4e6088]
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x43f4c2
mov dword [esp + 0x18], eax
jmp 0x43f570
mov eax, dword [ecx + 4]
mov edx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x43f4dd
push ecx
push esi
push edx
call fcn.004426c0
add esp, 0xc
jmp 0x43f4e4
inc dword [edx + 0xc]
inc word [eax + 0x1e]
mov dword [esp + 0x18], eax
test eax, eax
je 0x43f570
test byte [eax + 0x1c], 8
mov edx, 1
mov ecx, dword [esp + 0x14]
cmovne ecx, edx
push eax
mov dword [esp + 0x18], ecx
call fcn.00469790
add esp, 4
jmp 0x43f570
mov ecx, dword [esp + 0x10]
mov eax, dword [0x4e6128]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp esi, eax
je 0x43f574
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx + 0xcc]
push esi
push ebx
call eax
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x43f574
push dword [esp + 0x18]
call fcn.004406a0
mov ecx, dword [esp + 0x18]
mov edx, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push eax
test byte [eax + 0x1c], 8
cmovne ecx, edx
mov dword [esp + 0x1c], ecx
call fcn.00469790
add esp, 8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc esi
inc eax
mov dword [esp + 0x1c], eax
cmp eax, ebp
jl 0x43f470
test ecx, ecx
jne 0x43f64e
cmp dword [esp + 0x14], ecx
je 0x43f64e
jmp 0x43f5a0
mov eax, dword [ebx + 0xd4]
push 0
push edi
push dword [eax + 0x2c]
call dword [0x4e6088]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x43f63c
mov eax, dword [ecx + 4]
mov edx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x43f5da
push ecx
push edi
push edx
call fcn.004426c0
add esp, 0xc
jmp 0x43f5e1
inc dword [edx + 0xc]
inc word [eax + 0x1e]
test eax, eax
je 0x43f63c
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x43f633
mov edx, dword [eax + 0x14]
dec dword [edx + 0x78]
mov ecx, dword [edx + 0x88]
mov dword [eax + 0x10], ecx
mov esi, dword [edx + 0x3c]
mov dword [edx + 0x88], eax
push dword [eax + 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [edx + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004aa8f0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x30]
add esp, 0x10
jmp 0x43f63c
push eax
call fcn.0046a550
add esp, 4
inc edi
mov dword [esp + 0x20], edi
sub ebp, 1
jne 0x43f5a0
mov ecx, dword [esp + 0x10]
and byte [ebx + 0x14], 0xfb
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret