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

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x24]
mov eax, 1
push ebx
add ecx, 6
xor edx, edx
shl eax, cl
push ebp
push esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov dword [eax], 0
mov ecx, dword [edi + 0x80]
lea ebx, [edi + 0x8c]
mov dword [esp + 0x1c], ebx
lea eax, [edi + 0x74]
mov dword [esp + 0x18], eax
test ecx, 0xfffffffc
jbe 0x539004
mov eax, dword [edi + 0x7c]
xor ebp, ebp
test eax, eax
je 0x538fe8
mov ecx, edx
shr ecx, 2
mov dword [esp + 0x24], ecx
lea esi, [ecx + 1]
mov dword [esp + 0x28], esi
nop dword [eax]
lea ecx, [eax + 2]
mov eax, dword [edi + 0x78]
imul ecx, esi
add ecx, ebp
mov eax, dword [eax + ecx*4 + 4]
xor ecx, ecx
test eax, eax
sete cl
xor esi, esi
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x538f86
mov ecx, dword [ebx]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
lea ebx, [ecx*4]
imul ecx, edx
mov eax, dword [eax]
add ecx, ebp
lea ecx, [eax + ecx*4]
nop
mov eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
test edi, eax
jne 0x538f33
inc esi
add ecx, ebx
cmp esi, 4
jb 0x538f20
mov edi, dword [esp + 0x30]
lea eax, [edi + 0x60]
mov dword [edi + 0x68], eax
xor eax, eax
cmp esi, 4
setne al
push eax
push edi
call fcn.0053c3b0
add esp, 8
cmp esi, 4
je 0x538fce
lea eax, [edi + 0x64]
mov dword [edi + 0x68], eax
mov eax, esi
shr eax, 1
push eax
push edi
call fcn.0053c3b0
mov eax, esi
and eax, 1
push eax
push edi
call fcn.0053c3b0
mov ecx, dword [esp + 0x30]
lea ebx, [edi + 0x8c]
mov edx, dword [esp + 0x20]
add esp, 0x10
push dword [esp + 0x3c]
mov eax, dword [edi + 0x74]
push 4
push esi
push ecx
push dword [esp + 0x48]
lea ecx, [esi + edx]
imul ecx, dword [ebx]
push dword [esp + 0x28]
push dword [esp + 0x4c]
add ecx, ebp
lea eax, [eax + ecx*4]
mov ecx, dword [edi + 0x7c]
push eax
mov eax, dword [esp + 0x44]
add ecx, 2
inc eax
imul ecx, eax
mov eax, dword [edi + 0x78]
add ecx, ebp
lea eax, [eax + ecx*4]
add eax, 4
push eax
push edi
call fcn.005390a0
add esp, 0x28
jmp 0x538fd4
lea ebx, [edi + 0x8c]
mov eax, dword [edi + 0x7c]
inc ebp
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
cmp ebp, eax
jb 0x538ee0
mov ecx, dword [edi + 0x80]
add edx, 4
mov eax, ecx
mov dword [esp + 0x10], edx
and eax, 0xfffffffc
cmp edx, eax
jb 0x538ec0
jmp 0x53900c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov ebx, edi
cmp edx, ecx
jae 0x539089
mov edx, dword [ebx + 0x7c]
xor esi, esi
test edx, edx
je 0x539089
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 2
lea ebp, [eax*4 + 4]
nop dword [eax + eax]
push dword [esp + 0x3c]
mov eax, dword [edi + 0x80]
sub eax, ecx
push eax
mov eax, dword [esp + 0x24]
push 0
push 0
push dword [esp + 0x48]
mov ecx, dword [eax]
imul ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x28]
push dword [esp + 0x4c]
mov eax, dword [eax]
add ecx, esi
lea eax, [eax + ecx*4]
push eax
lea eax, [edx + 2]
imul eax, ebp
lea eax, [eax + esi*4]
add eax, 4
add eax, dword [edi + 0x78]
push eax
push edi
call fcn.005390a0
mov edx, dword [ebx + 0x7c]
inc esi
mov ecx, dword [esp + 0x38]
add esp, 0x28
cmp esi, edx
jb 0x539030
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret