Function at 0x526b50
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 0x526c2d
push eax
mov ecx, ebx
call fcn.00525b00
mov ecx, 0x800
test al, al
jne 0x526b96
mov eax, ecx
or word [ebp], ax
test word [ebp], cx
je 0x526bf8
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 0x526bd3
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 0x526c04
push esi
mov ecx, ebx
call fcn.00525bd0
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 0x526c41
mov edx, dword [esi + 0x4c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edi
jmp 0x526c41
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 0x526c85
jb 0x526c60
cmp dword [esi + 0x10], 0x7fffffff
ja 0x526c85
cmp dword [esi + 0x1c], 0
ja 0x526c85
jb 0x526c71
cmp dword [esi + 0x18], 0x7fffffff
ja 0x526c85
test ecx, ecx
ja 0x526c85
jb 0x526c7c
cmp eax, 0xffffffff
ja 0x526c85
cmp dword [esi + 0x28], 0xffff
jbe 0x526c95
push esi
mov ecx, ebx
call fcn.00526190
test eax, eax
jne 0x526fe2
push 0x400
mov dword [esp + 0x20], 0x400
call fcn.00538da8
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
jne 0x526cbf
push 4
mov ecx, ebx
call fcn.00523b10
jmp 0x526cc2
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 0x526d5c
cmp ecx, 0x7fffffff
ja 0x526d5c
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 0x526d63
mov dword [edi + 0x14], 0xffffffff
cmp dword [esi + 0x1c], 0
mov ecx, dword [esi + 0x18]
ja 0x526d90
jb 0x526d76
cmp ecx, 0x7fffffff
ja 0x526d90
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 0x526d97
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 0x526dd3
mov word [edi + 0x22], 0xffff
jmp 0x526dde
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 0x526e30
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
ja 0x526e30
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 0x526e37
mov dword [edi + 0x2a], 0xffffffff
cmp dword [esp + 0x24], 0
mov dword [esp + 0x14], 0x2e
jne 0x526eb9
movzx ecx, word [esi]
movzx eax, cl
push eax
shr ecx, 8
push ecx
call fcn.004ee0f0
test al, al
je 0x526eb9
mov ebp, dword [esp + 0x20]
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x526e63
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00538da8
mov edi, eax
add esp, 4
test edi, edi
jne 0x526e87
push 4
mov ecx, ebx
call fcn.00523b10
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.00526670
push edi
call fcn.00537b6f
add esp, 4
jmp 0x526edc
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.00526670
movzx eax, word [esi + 0x24]
test ax, ax
je 0x526eff
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.00526670
cmp word [esi + 0x26], 0
je 0x526f95
movzx ecx, word [esi]
movzx eax, cl
push eax
shr ecx, 8
push ecx
call fcn.004ee0f0
mov ecx, dword [esi + 0x44]
test al, al
je 0x526f79
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x526f24
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00538da8
mov edi, eax
add esp, 4
test edi, edi
jne 0x526f48
push 4
mov ecx, ebx
call fcn.00523b10
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.00526670
push edi
call fcn.00537b6f
add esp, 4
jmp 0x526f95
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.00526670
mov esi, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [esp + 0x18]
push 2
push esi
push 1
push edi
call fcn.005217b0
push edi
cmp eax, esi
je 0x526fd8
call fcn.00537b6f
add esp, 4
mov ecx, 0x5d281c
push dword [ebx + 0x64b7ac]
push 0
call fcn.00488150
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x1c
ret 4
call fcn.00537b6f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4