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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x54], edx
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
cmp esi, 0xa
jae 0x5e37dd
mov eax, 0xffffffec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + edx]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 2]
movzx ebx, word [ecx]
mov dword [esp + 0x10], eax
movzx eax, word [ecx + 4]
mov dword [esp + 0x18], eax
lea eax, [ecx + 6]
sub esi, dword [esp + 0x18]
lea ecx, [eax + ebx]
sub esi, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
lea eax, [edx + 3]
shr eax, 2
mov dword [esp + 0x30], ebx
lea ecx, [eax + edi]
lea edx, [ecx + eax]
mov dword [esp + 0x7c], ecx
add eax, edx
mov dword [esp + 0x40], edx
mov ebx, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
sub esi, eax
sub esi, 6
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], ebx
cmp esi, dword [ebp + 0xc]
ja 0x5e37d1
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x48]
push eax
call fcn.005e1630
add esp, 4
cmp eax, 0xffffff88
ja 0x5e3c17
push dword [esp + 0x10]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x84]
call fcn.005e1630
add esp, 4
cmp eax, 0xffffff88
ja 0x5e3c17
push dword [esp + 0x18]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x70]
call fcn.005e1630
add esp, 4
cmp eax, 0xffffff88
ja 0x5e3c17
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x5c]
mov edx, dword [esp + 0x24]
push esi
lea edx, [edx + eax]
call fcn.005e1630
add esp, 4
cmp eax, 0xffffff88
ja 0x5e3c17
lea ecx, [esp + 0x5c]
call fcn.005e1730
lea ecx, [esp + 0x6c]
mov esi, eax
call fcn.005e1730
lea ecx, [esp + 0x80]
or esi, eax
call fcn.005e1730
lea ecx, [esp + 0x48]
or esi, eax
call fcn.005e1730
or esi, eax
jne 0x5e3b55
mov eax, dword [esp + 0x44]
add eax, 0xfffffff9
mov dword [esp + 0x30], eax
cmp ebx, eax
jae 0x5e3b51
mov ebx, dword [esp + 0x4c]
mov ecx, ebx
mov edi, dword [esp + 0x2c]
and ecx, 0x1f
mov edx, dword [esp + 0x48]
neg edi
mov esi, dword [esp + 0xc]
and edi, 0x1f
shl edx, cl
mov ecx, edi
shr edx, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edi
movzx eax, word [esi + edx*4]
mov word [ecx], ax
movzx eax, byte [esi + edx*4 + 2]
add ebx, eax
movzx eax, byte [esi + edx*4 + 3]
add ecx, eax
mov esi, dword [esp + 0x84]
mov dword [esp + 0x20], ecx
mov ecx, esi
and ecx, 0x1f
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x80]
mov edx, ebx
shl edx, cl
mov ecx, edi
mov edi, dword [esp + 0x1c]
shr edx, cl
mov ecx, dword [esp + 0xc]
movzx eax, word [ecx + edx*4]
mov word [edi], ax
movzx eax, byte [ecx + edx*4 + 2]
add esi, eax
movzx eax, byte [ecx + edx*4 + 3]
add edi, eax
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x70]
mov ecx, esi
and ecx, 0x1f
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x6c]
mov edx, edi
shl edx, cl
mov ecx, dword [esp + 0x10]
shr edx, cl
mov ecx, dword [esp + 0xc]
movzx eax, word [ecx + edx*4]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
mov ecx, dword [esp + 0xc]
movzx eax, byte [ecx + edx*4 + 2]
add esi, eax
movzx eax, byte [ecx + edx*4 + 3]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
mov ecx, eax
and ecx, 0x1f
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x5c]
mov edx, esi
shl edx, cl
mov ecx, dword [esp + 0x10]
shr edx, cl
mov ecx, dword [esp + 0x28]
movzx eax, word [eax + edx*4]
mov word [ecx], ax
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + edx*4 + 2]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + edx*4 + 3]
mov edx, dword [esp + 0x48]
add ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x24]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
shr edx, cl
mov ecx, dword [esp + 0x20]
movzx eax, word [eax + edx*4]
mov word [ecx], ax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
movzx eax, byte [eax + edx*4 + 2]
add ecx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], ecx
movzx eax, byte [eax + edx*4 + 3]
mov edx, dword [esp + 0x34]
mov ecx, edx
add dword [esp + 0x20], eax
and ecx, 0x1f
shl ebx, cl
mov ecx, dword [esp + 0x10]
shr ebx, cl
mov ecx, dword [esp + 0xc]
movzx eax, word [ecx + ebx*4]
mov ecx, dword [esp + 0x1c]
mov word [ecx], ax
mov ecx, dword [esp + 0xc]
movzx eax, byte [ecx + ebx*4 + 2]
add edx, eax
movzx eax, byte [ecx + ebx*4 + 3]
add dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x38]
mov ecx, edx
and ecx, 0x1f
shl edi, cl
mov ecx, dword [esp + 0x10]
shr edi, cl
mov ecx, dword [esp + 0xc]
movzx eax, word [ecx + edi*4]
mov word [ebx], ax
movzx eax, byte [ecx + edi*4 + 2]
mov ebx, dword [esp + 0x28]
add edx, eax
movzx eax, byte [ecx + edi*4 + 3]
add dword [esp + 0x14], eax
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x18]
mov ecx, edx
and ecx, 0x1f
shl esi, cl
mov ecx, dword [esp + 0x10]
shr esi, cl
mov ecx, dword [esp + 0xc]
movzx eax, word [ecx + esi*4]
mov word [ebx], ax
movzx eax, byte [ecx + esi*4 + 2]
add edx, eax
movzx eax, byte [ecx + esi*4 + 3]
add ebx, eax
mov dword [esp + 0x60], edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x28], ebx
call fcn.005e1730
lea ecx, [esp + 0x6c]
mov esi, eax
call fcn.005e1730
lea ecx, [esp + 0x80]
or esi, eax
call fcn.005e1730
lea ecx, [esp + 0x48]
or esi, eax
call fcn.005e1730
or esi, eax
mov eax, dword [esp + 0x30]
je 0x5e3920
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x7c]
cmp edi, eax
ja 0x5e37d1
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x1c], ecx
ja 0x5e37d1
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x14], ecx
ja 0x5e37d1
push dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push esi
push eax
mov ecx, edi
call fcn.005e34e0
mov edi, dword [esp + 0x38]
lea edx, [esp + 0x8c]
mov ecx, dword [esp + 0x28]
add esp, 0xc
push edi
push esi
push dword [esp + 0x48]
call fcn.005e34e0
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x78]
add esp, 0xc
push edi
push esi
push dword [esp + 0x44]
call fcn.005e34e0
add esp, 0xc
lea edx, [esp + 0x5c]
mov ecx, ebx
push edi
push esi
push dword [esp + 0x4c]
call fcn.005e34e0
add esp, 0xc
lea ecx, [esp + 0x5c]
call fcn.005de660
lea ecx, [esp + 0x6c]
mov edx, eax
call fcn.005de660
lea ecx, [esp + 0x80]
and edx, eax
call fcn.005de660
lea ecx, [esp + 0x48]
and edx, eax
call fcn.005de660
test eax, edx
mov ecx, 0xffffffec
mov eax, dword [esp + 0x58]
cmove eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret