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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x101f62b4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ecx + 0x14]
xor edx, edx
mov dword [esp + 0x1c], ecx
push esi
push edi
mov eax, dword [ebx + 0x94]
xor esi, esi
div dword [ebx + 0x98]
or byte [ebx + 0x14], 4
mov ecx, dword [ecx + 0x18]
mov edi, eax
neg eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
lea edx, [ecx - 1]
and edx, eax
inc edx
mov dword [esp + 0x1c], edx
cmp ecx, dword [ebx + 0x18]
jbe 0x1006054d
sub ecx, edx
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x10060568
mov ecx, dword [ebx + 0x18]
lea eax, [edi - 1]
add eax, edx
cmp eax, ecx
jbe 0x10060562
sub ecx, edx
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x10060568
mov ecx, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], esi
test ecx, ecx
jle 0x10060791
mov edi, edx
nop word [eax + eax]
cmp dword [esp + 0x18], 0
jne 0x10060791
mov eax, dword [esp + 0x24]
cmp edi, dword [eax + 0x18]
je 0x100606ad
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x100606ad
mov edx, edi
mov ecx, eax
call fcn.10059d60
test eax, eax
je 0x100606a9
mov eax, dword [ebx + 0xd4]
mov esi, dword [0x101f6cb8]
mov ecx, esi
push 0
push edi
push dword [eax + 0x2c]
call dword [0x1019a4f8]
call esi
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x1006065b
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
inc edi
inc eax
mov dword [esp + 0x20], eax
cmp eax, ecx
jl 0x10060580
cmp dword [esp + 0x18], 0
jne 0x10060791
test esi, esi
je 0x10060791
mov edi, dword [esp + 0x1c]
nop
mov eax, dword [ebx + 0xd4]
mov esi, dword [0x101f6cb8]
mov ecx, esi
push 0
push edi
push dword [eax + 0x2c]
call dword [0x1019a4f8]
call esi
mov edx, eax
add esp, 0xc
test edx, edx
je 0x10060781
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x10060719
push edx
mov edx, edi
call fcn.1005a4a0
add esp, 4
jmp 0x10060720
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x10060676
push edx
mov edx, edi
call fcn.1005a4a0
add esp, 4
jmp 0x1006067d
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
mov dword [esp + 0x28], eax
test eax, eax
je 0x100605e1
test byte [eax + 0x1c], 8
mov ecx, 1
mov esi, dword [esp + 0x14]
cmovne esi, ecx
mov ecx, eax
mov dword [esp + 0x14], esi
call fcn.1005ff80
jmp 0x100605e5
mov ecx, dword [esp + 0x10]
mov eax, dword [0x101f8184]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x100605e9
mov esi, dword [ebx + 0xcc]
lea eax, [esp + 0x28]
push 0
push eax
push edi
push ebx
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100605e1
mov ecx, dword [esp + 0x28]
call fcn.100602c0
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, 1
test byte [ecx + 0x1c], 8
cmovne esi, eax
mov dword [esp + 0x14], esi
call fcn.1005ff80
jmp 0x100605e5
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
test eax, eax
je 0x10060781
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x1006077a
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.1015da40
push edx
push eax
push esi
mov esi, dword [edi + 0x48]
mov ecx, esi
call dword [0x1019a4f8]
call esi
mov edi, dword [esp + 0x2c]
add esp, 0x10
jmp 0x10060781
mov ecx, eax
call fcn.1005a500
inc edi
sub dword [esp + 0x10], 1
mov dword [esp + 0x1c], edi
jne 0x10060610
and byte [ebx + 0x14], 0xfb
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1015c875
mov esp, ebp
pop ebp
ret