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

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov dword [ebx + 0x10], 0x100000
mov dword [ebx + 0xdc], 0
mov ecx, dword [eax]
push edi
mov dword [ebx + 0x98], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0xd8]
mov ecx, dword [esp + 0x58]
sub ecx, eax
mov dword [esp + 0x5c], eax
add ecx, 4
mov eax, 1
shl eax, cl
mov edi, dword [esp + 0x4c]
mov dword [ebx + 0x9c], edx
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
lea esi, [eax - 1]
neg eax
mov dword [esp + 0x64], eax
mov eax, edi
shl eax, 4
sub ecx, eax
add ecx, ecx
cmp esi, ecx
jge 0x5e3ea1
mov ecx, esi
mov dword [ebx], ecx
mov ecx, dword [esp + 0x50]
mov eax, ecx
shl eax, 4
sub edx, eax
add edx, edx
cmp esi, edx
jl 0x5e3eb6
mov esi, edx
or edx, 0xffffffff
mov dword [ebx + 8], esi
mov esi, dword [esp + 0x64]
sub edx, edi
shl edx, 5
cmp esi, edx
jle 0x5e3ecb
mov edx, esi
mov dword [ebx + 4], edx
mov edx, 0xfffffff0
sub edx, eax
add edx, edx
cmp esi, edx
jle 0x5e3edd
mov edx, esi
mov eax, dword [ebx + 0x98]
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x5c]
mov ebx, dword [ebx + 0x9c]
test edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
je 0x5e3f28
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x78]
cdq
sub eax, edx
sar eax, 1
jmp 0x5e3f2c
mov eax, dword [esp + 0x78]
mov edx, dword [ebp + 0x10]
lea ebp, [edi - 1]
mov esi, edx
lea ebx, [edi + 1]
imul esi, ecx
add esi, ebp
dec ecx
imul ecx, edx
add edi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x64], edi
lea edi, [ecx + ebp]
mov dword [esp + 0x5c], edi
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x74]
add ecx, ebx
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x7c]
cmp ecx, edi
mov ecx, dword [esp + 0x60]
jl 0x5e3fbe
cmp ebx, edx
jge 0x5e3fbe
lea eax, [edx + edx*2]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
shl eax, 3
mov ebx, eax
mov eax, ecx
sub eax, ebx
mov ebx, dword [esp + 0x6c]
add eax, 0x1e8
cmp ebx, 3
jne 0x5e3fa6
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
xor ebx, ebx
jmp 0x5e3fc8
mov ebx, dword [eax + 0x194]
mov eax, dword [eax + 0x198]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
xor ebx, ebx
jmp 0x5e3fc8
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x64], edi
jl 0x5e4012
lea eax, [edx + edx*2]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
shl eax, 3
mov ebx, eax
mov eax, ecx
sub eax, ebx
mov ebx, dword [esp + 0x6c]
cmp ebx, 3
jne 0x5e3ffa
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
xor ebx, ebx
jmp 0x5e401a
mov ebx, dword [eax + 0x194]
mov eax, dword [eax + 0x198]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
xor ebx, ebx
jmp 0x5e401a
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
cmp esi, edi
jl 0x5e404f
cmp ebp, ebx
jl 0x5e404f
cmp dword [esp + 0x6c], 3
jne 0x5e403f
mov eax, dword [ecx - 0x1e8]
mov esi, dword [ecx - 0x1e4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
jmp 0x5e4057
mov eax, dword [ecx - 0x54]
mov esi, dword [ecx - 0x50]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
jmp 0x5e4057
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
cmp dword [esp + 0x5c], edi
jl 0x5e409f
cmp ebp, ebx
jl 0x5e409f
lea eax, [edx + edx*2 + 3]
lea eax, [eax + eax*4]
lea edx, [edx + eax*4 + 1]
mov eax, dword [esp + 0x6c]
shl edx, 3
sub ecx, edx
cmp eax, 3
jne 0x5e4089
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
jmp 0x5e40a7
mov eax, dword [ecx + 0x194]
mov ecx, dword [ecx + 0x198]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
jmp 0x5e40a7
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov ebp, dword [esp + 0x70]
xor edi, edi
xor esi, esi
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x24], ebx
xor eax, eax
test esi, esi
jbe 0x5e40d6
mov ecx, dword [esp + esi + 0x10]
cmp ecx, dword [esp + eax*8 + 0x10]
jne 0x5e40d1
mov edx, dword [esp + esi + 0x14]
mov ebx, dword [esp + eax*8 + 0x14]
cmp edx, ebx
je 0x5e40ea
inc eax
cmp eax, edi
jb 0x5e40bf
mov eax, dword [esp + esi + 0x14]
mov ecx, dword [esp + esi + 0x10]
push edi
push ebp
push eax
push ecx
call fcn.005e32b0
add esp, 0x10
add esi, 8
inc edi
cmp esi, 0x38
jl 0x5e40b5
cmp dword [ebp + 0x10], 0x200
jle 0x5e418c
mov eax, dword [ebp + 0x84]
mov esi, 0xff
xor edx, edx
mov edi, dword [esp + eax*8 + 0x14]
mov eax, dword [esp + eax*8 + 0x10]
mov ecx, dword [esp + edx*8 + 0x10]
cmp eax, ecx
jne 0x5e4139
mov ecx, dword [esp + edx*8 + 0x14]
lea ebx, [ecx + 2]
cmp edi, ebx
jne 0x5e412d
and esi, 0xfffffffb
jmp 0x5e4155
add ecx, 0xfffffffe
cmp edi, ecx
jne 0x5e4155
and esi, 0xfffffff7
jmp 0x5e4155
cmp edi, dword [esp + edx*8 + 0x14]
jne 0x5e4155
lea ebx, [ecx + 2]
cmp eax, ebx
jne 0x5e414b
and esi, 0xfffffffe
jmp 0x5e4155
add ecx, 0xfffffffe
cmp eax, ecx
jne 0x5e4155
and esi, 0xfffffffd
inc edx
cmp edx, 7
jb 0x5e4115
mov al, byte [esp + 0x54]
test al, 4
je 0x5e416a
mov eax, fcn.005db3f0
jmp 0x5e4178
test al, 1
mov eax, 0x5db150
jne 0x5e4178
mov eax, fcn.005db4f0
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
push fcn.005e32b0
push esi
push ebp
push edx
push ecx
call eax
add esp, 0x14
mov ecx, dword [esp + 0x68]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov edx, dword [ecx]
pop ebp
cmp eax, edx
pop ebx
jge 0x5e419f
mov dword [ecx], eax
add esp, 0x38
ret