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

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x58]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.005c0b40
mov ecx, dword [esi + 0x15c]
add ecx, dword [esi + 0x55c]
mov eax, dword [esi + 0x158]
mov edx, dword [esi + 0x160]
mov edi, dword [esi + 0x164]
add eax, dword [esi + 0x558]
sub edx, dword [esi + 0x560]
sub edi, dword [esi + 0x564]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 0x578]
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edi
test ecx, ecx
je 0x5e8b39
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x5e8b39
mov ecx, dword [esi + 0x578]
mov eax, dword [ecx]
mov edx, dword [eax + 0x5c]
call edx
sub dword [esp + 0x60], eax
mov ecx, dword [esi + 0x57c]
test ecx, ecx
je 0x5e8b62
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x5e8b62
mov ecx, dword [esi + 0x57c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x6c]
call edx
sub dword [esp + 0x64], eax
lea ebp, [esi + 0x54c]
mov ecx, ebp
call fcn.0059ca80
mov ebx, eax
test ebx, ebx
jne 0x5e8b7b
push eax
jmp 0x5e8df8
mov edi, dword [esi + 0x584]
test edi, edi
jle 0x5e8b8b
mov dword [esp + 0x10], edi
jmp 0x5e8bac
mov ecx, dword [esi + 0x580]
mov eax, dword [esp + 0x60]
lea edx, [ecx - 1]
imul edx, dword [esi + 0x568]
sub eax, edx
sub eax, dword [esp + 0x58]
cdq
idiv ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x58c]
test eax, eax
jle 0x5e8bc2
cmp edi, eax
mov dword [esp + 0x10], edi
jg 0x5e8bc2
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x594]
test eax, eax
jle 0x5e8bd6
cmp dword [esp + 0x10], eax
jl 0x5e8bd6
mov dword [esp + 0x10], eax
lea eax, [ebx - 1]
cdq
idiv dword [esi + 0x580]
inc eax
cmp eax, 1
jge 0x5e8bf1
mov ebx, 1
mov dword [esp + 0x1c], ebx
jmp 0x5e8bf7
mov dword [esp + 0x1c], eax
mov ebx, eax
mov ecx, dword [esi + 0x588]
xor edi, edi
cmp ecx, edi
jle 0x5e8c09
mov dword [esp + 0x14], ecx
jmp 0x5e8c26
lea eax, [ebx - 1]
mov edx, eax
imul edx, dword [esi + 0x568]
mov eax, dword [esp + 0x64]
sub eax, edx
sub eax, dword [esp + 0x5c]
cdq
idiv ebx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x590]
cmp eax, edi
jle 0x5e8c3c
cmp ecx, eax
mov dword [esp + 0x14], ecx
jg 0x5e8c3c
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x598]
cmp eax, edi
jle 0x5e8c50
cmp dword [esp + 0x14], eax
jl 0x5e8c50
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x57c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
cmp ecx, edi
je 0x5e8c81
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x5e8c81
mov ecx, dword [esi + 0x57c]
call fcn.005d33d0
neg eax
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0x578]
cmp ecx, edi
je 0x5e8caa
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x5e8caa
mov ecx, dword [esi + 0x578]
call fcn.005d33d0
neg eax
mov dword [esp + 0x28], eax
mov ecx, ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
call fcn.0059ca80
test eax, eax
jle 0x5e8deb
mov ecx, dword [esi + 0x580]
mov eax, edi
cdq
idiv ecx
push edi
mov ecx, ebp
mov ebx, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], eax
call fcn.0059cac0
mov ebp, eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x100]
mov ecx, ebp
call edx
test al, al
je 0x5e8dcd
mov eax, dword [ebp]
mov edx, dword [eax + 0x130]
mov ecx, ebp
call edx
test al, al
jne 0x5e8dcd
mov edi, ebx
imul edi, dword [esp + 0x10]
add edi, dword [esp + 0x24]
add edi, dword [esp + 0x58]
test ebx, ebx
jle 0x5e8d28
mov eax, dword [esi + 0x568]
imul eax, ebx
add edi, eax
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
imul ebx, eax
add ebx, dword [esp + 0x28]
add ebx, dword [esp + 0x5c]
test ecx, ecx
jle 0x5e8d4e
mov edx, dword [esi + 0x568]
imul edx, ecx
add ebx, edx
mov ecx, dword [esp + 0x10]
lea edx, [edi + ecx]
add eax, ebx
mov dword [esp + 0x3c], edx
mov edx, dword [ebp]
mov edx, dword [edx + 0x4c]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
call edx
mov ecx, dword [esp + 0x3c]
add edi, dword [esp + 0x44]
sub ecx, dword [esp + 0x4c]
add ebx, dword [esp + 0x48]
cmp ecx, edi
jge 0x5e8d88
mov dword [esp + 0x3c], edi
mov ecx, edi
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x50]
cmp eax, ebx
mov dword [esp + 0x40], eax
jge 0x5e8d9c
mov dword [esp + 0x40], ebx
mov edx, dword [ebp]
mov edx, dword [edx + 0x38]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov ecx, ebp
call edx
cmp dword [esp + 0x30], 0
mov edi, dword [esp + 0x18]
jne 0x5e8dcd
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
lea ebp, [esi + 0x54c]
inc edi
mov ecx, ebp
mov dword [esp + 0x18], edi
call fcn.0059ca80
cmp edi, eax
jl 0x5e8cc1
mov ebx, dword [esp + 0x1c]
dec ebx
imul ebx, dword [esi + 0x568]
add ebx, dword [esp + 0x20]
push ebx
mov ecx, dword [esp + 0x5c]
mov edx, dword [esi]
mov edx, dword [edx + 0x1fc]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x10