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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], eax
mov ebx, dword [ecx + 0x14]
push esi
push edi
mov eax, dword [ebx + 0x94]
div dword [ebx + 0x98]
or byte [ebx + 0x14], 4
mov edi, dword [ecx + 0x18]
mov edx, eax
mov esi, dword [ebx + 0x18]
neg eax
lea ecx, [edi - 1]
and ecx, eax
inc ecx
mov dword [ebp - 0x14], ecx
cmp edi, esi
jbe 0x4ce5c8
sub edi, ecx
inc edi
mov dword [ebp - 0x10], edi
jmp 0x4ce5e0
lea eax, [edx - 1]
add eax, ecx
cmp eax, esi
jbe 0x4ce5db
mov edi, esi
sub edi, ecx
inc edi
mov dword [ebp - 0x10], edi
jmp 0x4ce5e0
mov edi, edx
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], 0
test edi, edi
jle 0x4ce7ad
mov esi, ecx
test eax, eax
jne 0x4ce7ad
mov eax, dword [ebp + 8]
cmp esi, dword [eax + 0x18]
je 0x4ce681
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4ce681
push esi
push eax
call fcn.004de430
add esp, 8
test eax, eax
je 0x4ce681
mov eax, dword [ebx + 0xe4]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x5c929c]
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x4ce63b
mov dword [ebp - 0xc], eax
jmp 0x4ce6d5
mov eax, dword [ecx + 4]
mov edx, dword [ebx + 0xe4]
cmp dword [eax], 0
jne 0x4ce656
push ecx
push esi
push edx
call fcn.004d1240
add esp, 0xc
jmp 0x4ce65d
inc dword [edx + 0xc]
inc word [eax + 0x1e]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4ce6d5
test byte [eax + 0x1c], 8
mov edx, 1
mov ecx, dword [ebp - 8]
cmovne ecx, edx
push eax
mov dword [ebp - 8], ecx
call fcn.004fae30
add esp, 4
jmp 0x4ce6d5
mov eax, dword [0x5c8d4c]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp esi, eax
je 0x4ce6d5
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx + 0xcc]
push esi
push ebx
call eax
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ce6d8
push dword [ebp - 0xc]
call fcn.004cf840
mov ecx, dword [ebp - 8]
mov edx, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
test byte [eax + 0x1c], 8
cmovne ecx, edx
mov dword [ebp - 8], ecx
call fcn.004fae30
add esp, 8
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
inc esi
inc edx
mov dword [ebp - 0x18], edx
cmp edx, edi
jl 0x4ce5f3
test eax, eax
jne 0x4ce7ad
cmp dword [ebp - 8], eax
je 0x4ce7aa
mov esi, dword [ebp - 0x14]
nop dword [eax]
mov eax, dword [ebx + 0xe4]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x5c929c]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4ce79a
mov eax, dword [ecx + 4]
mov edx, dword [ebx + 0xe4]
cmp dword [eax], 0
jne 0x4ce736
push ecx
push esi
push edx
call fcn.004d1240
add esp, 0xc
jmp 0x4ce73d
inc dword [edx + 0xc]
inc word [eax + 0x1e]
test eax, eax
je 0x4ce79a
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x4ce791
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.00442320
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [ebp - 0x10]
add esp, 0x10
mov esi, dword [ebp - 0x14]
jmp 0x4ce79a
push eax
call fcn.004fbb20
add esp, 4
inc esi
sub edi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jne 0x4ce700
mov eax, dword [ebp - 4]
and byte [ebx + 0x14], 0xfb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret