Function at 0x527660
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov ebx, ecx
push edi
xor edi, edi
mov dword [esp + 0x24], edi
movzx eax, word [esi + 0x20]
lea ebp, [esi + 4]
mov ecx, eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ecx
test eax, eax
je 0x52773d
push eax
mov ecx, ebx
call fcn.00526610
mov ecx, 0x800
test al, al
jne 0x5276a6
mov eax, ecx
or word [ebp], ax
test word [ebp], cx
je 0x527708
mov eax, dword [esp + 0x20]
mov edi, 1
mov ecx, dword [ebx + 0x64b7c8]
movzx eax, ax
cdq
sub ecx, eax
mov eax, dword [ebx + 0x64b7cc]
mov dword [esp + 0x24], ecx
sbb eax, edx
mov dword [ebx + 0x64b7c8], ecx
mov dword [ebx + 0x64b7cc], eax
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x20], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5276e3
sub ecx, edx
movzx eax, cx
mov ecx, eax
cdq
add eax, dword [esp + 0x24]
mov dword [ebx + 0x64b7c8], eax
adc edx, dword [esp + 0x20]
mov dword [ebx + 0x64b7cc], edx
jmp 0x527714
push esi
mov ecx, ebx
call fcn.005266e0
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x48]
movzx eax, cx
mov dword [esp + 0x24], edi
mov ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
test edi, edi
je 0x527751
mov edx, dword [esi + 0x4c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edi
jmp 0x527751
mov eax, dword [esi + 0x48]
mov ecx, 0xf7ff
and word [ebp], cx
and word [esi + 0x2e], cx
mov dword [esp + 0x20], eax
cmp dword [esi + 0x14], 0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ecx
ja 0x527795
jb 0x527770
cmp dword [esi + 0x10], 0x7fffffff
ja 0x527795
cmp dword [esi + 0x1c], 0
ja 0x527795
jb 0x527781
cmp dword [esi + 0x18], 0x7fffffff
ja 0x527795
test ecx, ecx
ja 0x527795
jb 0x52778c
cmp eax, 0xffffffff
ja 0x527795
cmp dword [esi + 0x28], 0xffff
jbe 0x5277a5
push esi
mov ecx, ebx
call fcn.00526ca0
test eax, eax
jne 0x527af2
push 0x400
mov dword [esp + 0x20], 0x400
call fcn.005398b8
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
jne 0x5277cf
push 4
mov ecx, ebx
call fcn.00524630
jmp 0x5277d2
lea ebp, [esi + 4]
mov dword [edi], 0x2014b50
movzx eax, word [esi]
mov byte [edi + 4], al
shr eax, 8
mov byte [edi + 5], al
movzx eax, word [esi + 2]
mov byte [edi + 6], al
shr eax, 8
mov byte [edi + 7], al
movzx eax, word [ebp]
mov byte [edi + 8], al
shr eax, 8
mov byte [edi + 9], al
movzx eax, word [esi + 6]
mov byte [edi + 0xa], al
shr eax, 8
mov byte [edi + 0xb], al
mov ecx, dword [esi + 8]
movzx eax, cx
mov byte [edi + 0xc], al
shr ecx, 0x10
mov byte [edi + 0xe], cl
shr ecx, 8
mov byte [edi + 0xf], cl
shr eax, 8
mov byte [edi + 0xd], al
mov ecx, dword [esi + 0xc]
movzx eax, cx
shr ecx, 0x10
mov byte [edi + 0x10], al
mov byte [edi + 0x12], cl
shr ecx, 8
shr eax, 8
mov byte [edi + 0x11], al
mov byte [edi + 0x13], cl
cmp dword [esi + 0x14], 0
mov ecx, dword [esi + 0x10]
ja 0x52786c
cmp ecx, 0x7fffffff
ja 0x52786c
movzx eax, cx
shr ecx, 0x10
mov byte [edi + 0x14], al
shr eax, 8
mov byte [edi + 0x16], cl
shr ecx, 8
mov byte [edi + 0x15], al
mov byte [edi + 0x17], cl
jmp 0x527873
mov dword [edi + 0x14], 0xffffffff
cmp dword [esi + 0x1c], 0
mov ecx, dword [esi + 0x18]
ja 0x5278a0
jb 0x527886
cmp ecx, 0x7fffffff
ja 0x5278a0
movzx eax, cx
shr ecx, 0x10
mov byte [edi + 0x18], al
shr eax, 8
mov byte [edi + 0x1a], cl
shr ecx, 8
mov byte [edi + 0x19], al
mov byte [edi + 0x1b], cl
jmp 0x5278a7
mov dword [edi + 0x18], 0xffffffff
mov eax, dword [esp + 0x10]
mov byte [edi + 0x1c], al
shr eax, 8
mov byte [edi + 0x1d], al
movzx eax, word [esi + 0x24]
mov byte [edi + 0x1e], al
shr eax, 8
mov byte [edi + 0x1f], al
movzx eax, word [esi + 0x26]
mov byte [edi + 0x20], al
shr eax, 8
mov byte [edi + 0x21], al
mov eax, dword [esi + 0x28]
movzx ecx, ax
cmp eax, 0xffff
jbe 0x5278e3
mov word [edi + 0x22], 0xffff
jmp 0x5278ee
mov eax, ecx
mov byte [edi + 0x22], al
shr eax, 8
mov byte [edi + 0x23], al
movzx eax, word [esi + 0x2c]
mov byte [edi + 0x24], al
shr eax, 8
mov byte [edi + 0x25], al
mov ecx, dword [esi + 0x38]
movzx eax, cx
shr ecx, 0x10
mov byte [edi + 0x26], al
shr eax, 8
mov byte [edi + 0x28], cl
shr ecx, 8
cmp dword [esp + 0x14], 0
mov byte [edi + 0x27], al
mov byte [edi + 0x29], cl
ja 0x527940
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
ja 0x527940
movzx eax, cx
shr ecx, 0x10
mov byte [edi + 0x2a], al
shr eax, 8
mov byte [edi + 0x2c], cl
shr ecx, 8
mov byte [edi + 0x2b], al
mov byte [edi + 0x2d], cl
jmp 0x527947
mov dword [edi + 0x2a], 0xffffffff
cmp dword [esp + 0x24], 0
mov dword [esp + 0x14], 0x2e
jne 0x5279c9
movzx ecx, word [esi]
movzx eax, cl
push eax
shr ecx, 8
push ecx
call fcn.004eec90
test al, al
je 0x5279c9
mov ebp, dword [esp + 0x20]
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x527973
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.005398b8
mov edi, eax
add esp, 4
test edi, edi
jne 0x527997
push 4
mov ecx, ebx
call fcn.00524630
push edi
push ebp
call dword [sym.imp.USER32.dll_CharToOemA]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
movzx eax, cx
mov ecx, ebx
push eax
push edi
call fcn.00527180
push edi
call fcn.0053867f
add esp, 4
jmp 0x5279ec
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
mov ebp, dword [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
movzx eax, cx
mov ecx, ebx
push eax
push ebp
call fcn.00527180
movzx eax, word [esi + 0x24]
test ax, ax
je 0x527a0f
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
push ecx
push eax
push dword [esi + 0x40]
mov ecx, ebx
call fcn.00527180
cmp word [esi + 0x26], 0
je 0x527aa5
movzx ecx, word [esi]
movzx eax, cl
push eax
shr ecx, 8
push ecx
call fcn.004eec90
mov ecx, dword [esi + 0x44]
test al, al
je 0x527a89
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x527a34
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.005398b8
mov edi, eax
add esp, 4
test edi, edi
jne 0x527a58
push 4
mov ecx, ebx
call fcn.00524630
push edi
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_CharToOemA]
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
movzx eax, word [esi + 0x26]
push eax
push edi
call fcn.00527180
push edi
call fcn.0053867f
add esp, 4
jmp 0x527aa5
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
movzx eax, word [esi + 0x26]
push eax
push ecx
mov ecx, ebx
call fcn.00527180
mov esi, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [esp + 0x18]
push 2
push esi
push 1
push edi
call fcn.00522300
push edi
cmp eax, esi
je 0x527ae8
call fcn.0053867f
add esp, 4
mov ecx, 0x5d381c
push dword [ebx + 0x64b7ac]
push 0
call fcn.00488950
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x1c
ret 4
call fcn.0053867f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4