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

Disassembly:
jmp 0x5d301a
mov edx, dword [esp + 0x30]
movsx ecx, word [edx]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x2c]
movsx edx, word [eax]
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0x34]
mov esi, edx
movsx edx, word [eax]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], edx
xor eax, eax
mov dword [esp + 0x3c], eax
xor eax, eax
mov ecx, dword [esp + 0x40]
mov edi, dword [ecx + 0x1c]
dec edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x14]
ja 0x5d34a2
lea edx, [esp + 0x98]
mov ecx, 1
mov eax, dword [esp + 0x2c]
call 0xe85d705e
mov edi, dword [esp + 0x10]
cmp edi, dword [esp + 0x14]
jae 0x5d30d5
mov eax, dword [esp + 0x30]
movsx edx, word [eax + 0x80]
mov dword [esp + 0x78], edx
mov ecx, dword [esp + 0x2c]
movsx edi, word [ecx + 0x80]
mov dword [esp + 0x80], edi
mov eax, dword [esp + 0x34]
movsx edx, word [eax + 0x80]
mov dword [esp + 0x8c], edx
mov ecx, dword [esp + 0x50]
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x5d3177
cmp word [esp + 0x9a], 0
jne 0x5d3177
mov ecx, esi
sub ecx, dword [esp + 0x80]
imul ecx, dword [esp + 0x58]
shl ecx, 2
lea ecx, [ecx + ecx*8]
test ecx, ecx
jl 0x5d313d
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x5c]
shl eax, 7
shl edx, 8
add eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x5d316f
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x5d316f
mov ecx, ebx
mov eax, 1
shl eax, cl
dec eax
jmp 0x5d316f
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x5c]
shl eax, 7
shl edx, 8
sub eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x5d316d
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x5d316d
mov ecx, ebx
mov eax, 1
shl eax, cl
dec eax
neg eax
mov word [esp + 0x9a], ax
mov edx, dword [esp + 0x50]
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x5d321b
cmp word [esp + 0xa8], 0
jne 0x5d321b
mov ecx, dword [esp + 0x74]
sub ecx, dword [esp + 0x88]
imul ecx, dword [esp + 0x58]
shl ecx, 2
lea ecx, [ecx + ecx*8]
test ecx, ecx
jl 0x5d31e1
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x64]
shl eax, 7
shl edx, 8
add eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x5d3213
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x5d3213
mov ecx, ebx
mov eax, 1
shl eax, cl
dec eax
jmp 0x5d3213
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x64]
shl eax, 7
shl edx, 8
sub eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x5d3211
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x5d3211
mov ecx, ebx
mov eax, 1
shl eax, cl
dec eax
neg eax
mov word [esp + 0xa8], ax
mov edx, dword [esp + 0x50]
mov ebx, dword [edx + 0xc]
test ebx, ebx
je 0x5d32c4
cmp word [esp + 0xb8], 0
jne 0x5d32c4
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
add ecx, dword [esp + 0x88]
add eax, eax
sub ecx, eax
imul ecx, dword [esp + 0x58]
lea ecx, [ecx + ecx*8]
test ecx, ecx
jl 0x5d328a
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
shl eax, 7
shl edx, 8
add eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x5d32bc
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x5d32bc
mov ecx, ebx
mov eax, 1
shl eax, cl
dec eax
jmp 0x5d32bc
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
shl eax, 7
shl edx, 8
sub eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x5d32ba
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x5d32ba
mov ecx, ebx
mov eax, 1
shl eax, cl
dec eax
neg eax
mov word [esp + 0xb8], ax
mov edx, dword [esp + 0x50]
mov ebx, dword [edx + 0x10]
test ebx, ebx
je 0x5d3370
cmp word [esp + 0xaa], 0
jne 0x5d3370
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x78]
sub ecx, dword [esp + 0x84]
add ecx, dword [esp + 0x8c]
imul ecx, dword [esp + 0x58]
lea ecx, [ecx + ecx*4]
test ecx, ecx
jl 0x5d3336
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x68]
shl eax, 7
shl edx, 8
add eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x5d3368
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x5d3368
mov ecx, ebx
mov eax, 1
shl eax, cl
dec eax
jmp 0x5d3368
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x68]
shl eax, 7
shl edx, 8
sub eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x5d3366
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x5d3366
mov ecx, ebx
mov eax, 1
shl eax, cl
dec eax
neg eax
mov word [esp + 0xaa], ax
mov edx, dword [esp + 0x50]
mov ebx, dword [edx + 0x14]
test ebx, ebx
je 0x5d3415
cmp word [esp + 0x9c], 0
jne 0x5d3415
add esi, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
add ecx, ecx
sub esi, ecx
imul esi, dword [esp + 0x58]
lea ecx, [esi + esi*8]
test ecx, ecx
jl 0x5d33db
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x60]
shl eax, 7
shl edx, 8
add eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x5d340d
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x5d340d
mov ecx, ebx
mov eax, 1
shl eax, cl
dec eax
jmp 0x5d340d
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x60]
shl eax, 7
shl edx, 8
sub eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x5d340b
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x5d340b
mov ecx, ebx
mov eax, 1
shl eax, cl
dec eax
neg eax
mov word [esp + 0x9c], ax
mov edx, dword [esp + 0x38]
push edx
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0xa0]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 8]
call dword [esp + 0x4c]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x70], edx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x74], ecx
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x88]
mov dword [esp + 0x84], edx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x88], ecx
add dword [esp + 0x2c], 0x80
add dword [esp + 0x30], 0x80
add dword [esp + 0x34], 0x80
mov edi, dword [esp + 0x40]
mov eax, dword [edi + 0x24]
add dword [esp + 0x3c], eax
inc dword [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x14]
jbe 0x5d3083
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x24]
shl eax, 2
add dword [esp + 0x38], eax
inc dword [esp + 0x1c]
add dword [esp + 0x94], 4
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x20]
jl 0xe15d2fbd
inc dword [esp + 0x18]
add dword [esp + 0x40], 0x54
mov ecx, dword [esp]
mov eax, dword [ecx + 0x24]
cmp eax, dword [esp + 0x18]
jg 0x3e2e11
mov edx, dword [esp]
inc dword [edx + 0x9c]
mov ecx, dword [edx + 0x9c]
mov ebx, dword [esp]
cmp ecx, dword [ebx + 0x140]
jae 0x5d3504
mov eax, 3
jmp 0x5d3509
mov eax, 4
add esp, 0x118
pop edi
pop esi
pop ebx
ret