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

Disassembly:
sub esp, 0x5c
push ebp
mov ebp, dword [esp + 0x6c]
imul ebp, dword [esp + 0x70]
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
cmp dword [esi], 3
lea eax, [esi + 8]
mov dword [esp + 0x20], 0
mov dword [esp + 0x74], eax
jne 0x538ffb
cmp dword [eax], 0
jne 0x538fff
pop edi
pop esi
mov eax, 0x6b
pop ebp
add esp, 0x5c
ret
mov dword [esp + 0x74], eax
push ebx
mov ebx, dword [esp + 0x70]
mov edx, esi
mov ecx, ebx
call fcn.00539396
test eax, eax
je 0x53904d
mov ecx, dword [esi]
call fcn.0053d7ef
mov edx, dword [esp + 0x10]
mov ecx, eax
imul ecx, dword [esi + 4]
mov eax, ebp
and eax, 7
shr ebp, 3
imul eax, ecx
imul ebp, ecx
mov ecx, edi
add eax, 7
shr eax, 3
add eax, ebp
push eax
call fcn.0053d7bf
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x5c
ret
cmp dword [ebx], 3
jne 0x539133
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 4]
mov ebx, 1
mov ecx, eax
mov dword [esp + 0x20], eax
shl ebx, cl
test edx, edx
jne 0x5390ca
mov eax, dword [esp + 0x78]
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x7c], eax
cmp ecx, 3
jne 0x5390ca
mov esi, dword [esi + 4]
cmp esi, dword [esp + 0x20]
jne 0x5390ca
call fcn.0053d7ef
mov edx, dword [esp + 0x10]
mov ecx, eax
imul ecx, esi
mov eax, ebp
and eax, 7
shr ebp, 3
imul eax, ecx
imul ebp, ecx
mov ecx, edi
add eax, 7
shr eax, 3
add eax, ebp
push eax
call fcn.0053d7bf
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x5c
ret
cmp edx, ebx
jae 0x5390d0
mov ebx, edx
lea edx, [esp + 0x28]
mov ecx, 0x40
call fcn.0055d86a
xor edi, edi
mov dword [esp + 0x68], 0xffffffff
test ebx, ebx
je 0x53912b
mov esi, dword [esp + 0x7c]
add esi, 2
lea ebx, [ebx]
movzx eax, byte [esi + 1]
lea ecx, [esp + 0x28]
mov dl, byte [esi - 2]
push edi
push eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi - 1]
push eax
call fcn.00538edf
add esp, 0x10
mov dword [esp + 0x24], eax
test eax, eax
jne 0x539291
inc edi
add esi, 4
cmp edi, ebx
jne 0x5390f9
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
cmp dword [eax + 4], 0x10
jne 0x5392db
cmp dword [ebx + 4], 0x10
jne 0x5392db
xor ecx, ecx
mov dword [esp + 0x20], ecx
test ebp, ebp
je 0x539295
lea esi, [edi + 2]
mov ebx, esi
mov edi, esi
push eax
push ecx
push dword [esp + 0x18]
lea eax, [esp + 0x28]
mov dword [esp + 0x84], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x8c], 0
push eax
lea edx, [esp + 0x90]
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x8c]
mov dword [esp + 0x30], 0
call fcn.00538cd3
mov eax, dword [esp + 0x84]
add esp, 0x14
mov eax, dword [eax]
test eax, eax
jne 0x5391dc
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x78]
shr eax, 8
mov byte [ecx + edx*2], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov byte [eax + edx*2 + 1], cl
jmp 0x539273
cmp eax, 2
jne 0x53920f
mov ecx, dword [esp + 0x78]
mov eax, ecx
shr eax, 8
mov byte [edi - 2], al
mov byte [edi - 1], cl
mov ecx, dword [esp + 0x7c]
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov byte [edi + 1], cl
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 8
mov byte [edi + 2], al
mov byte [edi + 3], cl
jmp 0x539273
cmp eax, 4
jne 0x539233
mov ecx, dword [esp + 0x78]
mov eax, ecx
shr eax, 8
mov byte [ebx - 2], al
mov byte [ebx - 1], cl
mov ecx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 8
mov byte [ebx], al
mov byte [ebx + 1], cl
jmp 0x539273
cmp eax, 6
jne 0x539273
mov ecx, dword [esp + 0x78]
mov eax, ecx
shr eax, 8
mov byte [esi - 2], al
mov byte [esi - 1], cl
mov ecx, dword [esp + 0x7c]
mov eax, ecx
shr eax, 8
mov byte [esi], al
mov byte [esi + 1], cl
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov byte [esi + 3], cl
mov ecx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 8
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov ecx, dword [esp + 0x20]
add edi, 6
mov eax, dword [esp + 0x74]
inc ecx
add ebx, 4
mov dword [esp + 0x20], ecx
add esi, 8
cmp ecx, ebp
jne 0x539160
mov ebx, dword [esp + 0x70]
cmp dword [ebx], 3
jne 0x5392cf
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop
mov ecx, dword [esp + esi*4 + 0x28]
test ecx, ecx
je 0x5392c9
call fcn.00538c96
mov eax, dword [esp + esi*4 + 0x28]
test eax, eax
je 0x5392c9
add eax, 0xfffffffc
push eax
push 0
call ebx
push eax
call edi
inc esi
cmp esi, 0x10
jne 0x5392a9
mov eax, dword [esp + 0x24]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x5c
ret
cmp dword [ebx + 4], 8
jne 0x539313
mov ecx, dword [ebx]
cmp ecx, 6
jne 0x5392fb
push eax
push dword [esp + 0x14]
mov edx, ebp
mov ecx, edi
call fcn.00538877
add esp, 8
jmp 0x539295
cmp ecx, 2
jne 0x539313
push eax
push dword [esp + 0x14]
mov edx, ebp
mov ecx, edi
call fcn.0053855f
add esp, 8
jmp 0x539295
xor esi, esi
mov byte [esp + 0x1c], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x7c], 0
mov byte [esp + 0x78], 0
test ebp, ebp
je 0x539295
push eax
push esi
push dword [esp + 0x18]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x8c]
push eax
lea edx, [esp + 0x34]
lea ecx, [esp + 0x30]
call fcn.0053824b
push dword [esp + 0x8c]
lea eax, [esp + 0x40]
mov edx, esi
push dword [esp + 0x94]
mov ecx, edi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
push ebx
call fcn.00538004
add esp, 0x2c
mov dword [esp + 0x24], eax
test eax, eax
jne 0x539295
mov eax, dword [esp + 0x74]
inc esi
cmp esi, ebp
jne 0x539331
jmp 0x539295