Function at 0x1005fa90
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 0x1005faed
sub ecx, edx
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x1005fb08
mov ecx, dword [ebx + 0x18]
lea eax, [edi - 1]
add eax, edx
cmp eax, ecx
jbe 0x1005fb02
sub ecx, edx
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x1005fb08
mov ecx, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], esi
test ecx, ecx
jle 0x1005fd31
mov edi, edx
nop word [eax + eax]
cmp dword [esp + 0x18], 0
jne 0x1005fd31
mov eax, dword [esp + 0x24]
cmp edi, dword [eax + 0x18]
je 0x1005fc4d
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x1005fc4d
mov edx, edi
mov ecx, eax
call fcn.10059300
test eax, eax
je 0x1005fc49
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 0x1005fbfb
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 0x1005fb20
cmp dword [esp + 0x18], 0
jne 0x1005fd31
test esi, esi
je 0x1005fd31
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 0x1005fd21
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x1005fcb9
push edx
mov edx, edi
call fcn.10059a40
add esp, 4
jmp 0x1005fcc0
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x1005fc16
push edx
mov edx, edi
call fcn.10059a40
add esp, 4
jmp 0x1005fc1d
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
mov dword [esp + 0x28], eax
test eax, eax
je 0x1005fb81
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.1005f520
jmp 0x1005fb85
mov ecx, dword [esp + 0x10]
mov eax, dword [0x101f81e4]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x1005fb89
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 0x1005fb81
mov ecx, dword [esp + 0x28]
call fcn.1005f860
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.1005f520
jmp 0x1005fb85
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
test eax, eax
je 0x1005fd21
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x1005fd1a
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.1015d970
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 0x1005fd21
mov ecx, eax
call fcn.10059aa0
inc edi
sub dword [esp + 0x10], 1
mov dword [esp + 0x1c], edi
jne 0x1005fbb0
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.1015c7a5
mov esp, ebp
pop ebp
ret