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

Disassembly:
push 0xffffffffffffffff
push 0x68d098
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x9c48d0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x14]
push eax
call fcn.005d7fe0
add esp, 4
mov ebp, dword [esp + 0x40]
mov eax, dword [ebp]
cmp dword [eax + 0x40], 0
mov dword [esp + 0x34], 0
je 0x5d8ed5
mov ecx, dword [esp + 0x14]
push 0
push eax
call fcn.005b9b50
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.005c1190
mov eax, dword [ebp]
mov esi, dword [esp + 0x3c]
movzx edx, word [eax + 0xa]
movzx edi, word [esi + 0xa]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
movzx ebx, word [esi + 8]
push eax
add ecx, 0x78
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], edi
call fcn.005d7ef0
mov ecx, eax
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
push 2
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x44], eax
mov eax, edi
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ecx + 8]
sar edx, 1
sub edx, dword [esp + 0x44]
sub edx, edi
lea edi, [edx + eax + 1]
mov eax, dword [ecx]
mov dword [esp + 0x44], eax
sub eax, dword [ecx + 0xc]
inc eax
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x44]
sar eax, 1
sar ecx, 1
sub eax, ecx
sub eax, ebx
lea eax, [eax + edx + 1]
mov ecx, esi
mov dword [esp + 0x40], eax
call fcn.005ba3f0
mov ecx, dword [ebp]
mov edx, 2
sub edx, edi
push edx
call fcn.005ba3f0
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp]
mov eax, edi
sub eax, dword [esp + 0x24]
lea eax, [eax + edx + 2]
push eax
call fcn.005ba3f0
mov ecx, dword [esp + 0x3c]
lea edx, [ebx - 1]
mov ebx, dword [ebp]
cmp dword [ebx + 0x14], 0
lea eax, [edx + ecx]
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], eax
jne 0x5d8fab
mov ecx, ebx
call fcn.005b90a0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea ecx, [eax - 1]
test ecx, ecx
js 0x5d8fd8
movzx eax, word [ebx + 8]
cmp ecx, eax
jge 0x5d8fd4
movzx eax, word [ebx + 0xe]
imul eax, ecx
movzx ecx, word [ebx + 0xc]
add eax, ecx
add eax, dword [ebx + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
jmp 0x5d8fe6
mov eax, dword [esp + 0x3c]
movzx ecx, word [ebx + 0xc]
add ecx, dword [0x9c1168]
mov dword [esp + 0x44], ecx
mov ebx, dword [ebp]
cmp dword [ebx + 0x14], 0
mov dword [esp + 0x24], ebx
jne 0x5d9002
mov ecx, ebx
call fcn.005b90a0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
test eax, eax
js 0x5d9024
movzx ecx, word [ebx + 8]
cmp eax, ecx
jge 0x5d9024
movzx ecx, word [ebx + 0xe]
movzx ebx, word [ebx + 0xc]
imul ecx, eax
add ecx, ebx
mov ebx, dword [esp + 0x24]
add ecx, dword [ebx + 0x14]
jmp 0x5d902e
movzx ecx, word [ebx + 0xc]
add ecx, dword [0x9c1168]
mov ebx, dword [ebp]
inc eax
cmp dword [ebx + 0x14], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jne 0x5d904f
mov ecx, ebx
call fcn.005b90a0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
test eax, eax
js 0x5d9071
movzx ecx, word [ebx + 8]
cmp eax, ecx
jge 0x5d9071
movzx ecx, word [ebx + 0xe]
imul ecx, eax
movzx eax, word [ebx + 0xc]
add ecx, eax
add ecx, dword [ebx + 0x14]
mov dword [esp + 0x24], ecx
jmp 0x5d907f
movzx eax, word [ebx + 0xc]
add eax, dword [0x9c1168]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x14], 0
jne 0x5d9090
mov ecx, esi
call fcn.005b90a0
mov edx, dword [esp + 0x40]
test edx, edx
js 0x5d90ae
movzx ecx, word [esi + 8]
cmp edx, ecx
jge 0x5d90ae
movzx ebx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
imul ebx, edx
add ebx, eax
add ebx, dword [esi + 0x14]
jmp 0x5d90b8
movzx ebx, word [esi + 0xc]
add ebx, dword [0x9c1168]
cmp dword [esi + 0x14], 0
lea ecx, [edx + 1]
mov dword [esp + 0x28], ecx
jne 0x5d90d4
mov ecx, esi
call fcn.005b90a0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
test ecx, ecx
js 0x5d90f2
movzx eax, word [esi + 8]
cmp ecx, eax
jge 0x5d90f2
movzx eax, word [esi + 0xe]
imul eax, ecx
movzx ecx, word [esi + 0xc]
add eax, ecx
add eax, dword [esi + 0x14]
jmp 0x5d90fc
movzx eax, word [esi + 0xc]
add eax, dword [0x9c1168]
mov ecx, dword [ebp]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x44]
add ecx, edi
push ecx
mov ecx, dword [esp + 0x24]
add ecx, edi
push ecx
mov ecx, dword [esp + 0x2c]
add ecx, edi
push ecx
mov ecx, dword [esp + 0x24]
push ebx
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x3c]
push edi
push edx
push esi
call eax
mov esi, dword [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x14], 0
test esi, esi
je 0x5d916a
lea ecx, [esi + 4]
push ecx
call fcn.0058e4a0
add esp, 4
test eax, eax
jne 0x5d916a
mov ecx, esi
call fcn.005c1030
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc