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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
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 + 0x14], 0
mov dword [esp + 0x10], esi
lea edx, [ecx - 1]
and edx, eax
inc edx
mov dword [esp + 0x1c], edx
cmp ecx, dword [ebx + 0x18]
jbe 0x1005bbd2
sub ecx, edx
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x1005bbed
mov ecx, dword [ebx + 0x18]
lea eax, [edi - 1]
add eax, edx
cmp eax, ecx
jbe 0x1005bbe7
sub ecx, edx
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x1005bbed
mov ecx, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x20], esi
test ecx, ecx
jle 0x1005be11
mov edi, edx
nop dword [eax + eax]
cmp dword [esp + 0x14], 0
jne 0x1005be11
mov eax, dword [esp + 0x24]
cmp edi, dword [eax + 0x18]
je 0x1005bd2d
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x1005bd2d
mov edx, edi
mov ecx, eax
call fcn.10055440
test eax, eax
je 0x1005bd29
mov eax, dword [ebx + 0xd4]
mov esi, dword [0x101e4cf4]
mov ecx, esi
push 0
push edi
push dword [eax + 0x2c]
call dword [0x1018a4d4]
call esi
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x1005bcdb
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
inc edi
inc eax
mov dword [esp + 0x20], eax
cmp eax, ecx
jl 0x1005bc00
cmp dword [esp + 0x14], 0
jne 0x1005be11
test esi, esi
je 0x1005be11
mov edi, dword [esp + 0x1c]
nop
mov eax, dword [ebx + 0xd4]
mov esi, dword [0x101e4cf4]
mov ecx, esi
push 0
push edi
push dword [eax + 0x2c]
call dword [0x1018a4d4]
call esi
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1005be01
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x1005bd99
push edx
mov edx, edi
call fcn.10055b00
add esp, 4
jmp 0x1005bda0
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x1005bcf6
push edx
mov edx, edi
call fcn.10055b00
add esp, 4
jmp 0x1005bcfd
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1005bc61
test byte [eax + 0x1c], 8
mov ecx, 1
mov esi, dword [esp + 0x10]
cmovne esi, ecx
mov ecx, eax
mov dword [esp + 0x10], esi
call fcn.1005b5b0
jmp 0x1005bc65
mov ecx, dword [esp + 0xc]
mov eax, dword [0x101e6114]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x1005bc69
mov esi, dword [ebx + 0xcc]
lea eax, [esp + 0x18]
push 0
push eax
push edi
push ebx
mov ecx, esi
call dword [0x1018a4d4]
call esi
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1005bc61
mov ecx, dword [esp + 0x18]
call fcn.1005bb00
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, 1
test byte [ecx + 0x1c], 8
cmovne esi, eax
mov dword [esp + 0x10], esi
call fcn.1005b5b0
jmp 0x1005bc65
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
test eax, eax
je 0x1005be01
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x1005bdfa
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.1014e2d0
push edx
push eax
push esi
mov esi, dword [edi + 0x48]
mov ecx, esi
call dword [0x1018a4d4]
call esi
mov edi, dword [esp + 0x2c]
add esp, 0x10
jmp 0x1005be01
mov ecx, eax
call fcn.10055b80
inc edi
sub dword [esp + 0xc], 1
mov dword [esp + 0x1c], edi
jne 0x1005bc90
and byte [ebx + 0x14], 0xfb
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret