Function at 0x552a1a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ebx
push ebx
mov ebx, dword [ebp + 0x10]
push 0x21585055
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push ebx
push esi
call 0x581642
mov dword [ebp - 0x10], eax
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x10], 0
js 0x552c20
mov eax, dword [ebp - 0x10]
add eax, 8
test eax, eax
jle 0x552a57
cmp eax, ebx
jle 0x552a62
push 0x485380
call fcn.00541692
pop ecx
add esi, dword [ebp - 0x10]
movzx eax, byte [esi + 4]
mov dword [edi], eax
movzx eax, byte [esi + 5]
mov dword [edi + 4], eax
movzx eax, byte [esi + 6]
mov dword [edi + 8], eax
movzx eax, byte [esi + 7]
mov dword [edi + 0x28], 0
mov dword [edi + 0xc], eax
push edi
call fcn.0055274a
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
pop edx
test eax, eax
jle 0x552a9f
cmp eax, ebx
jle 0x552aaa
push 0x485393
call fcn.00541692
pop ebx
mov ecx, dword [edi + 4]
cmp ecx, 0x7f
jg 0x552b3c
mov eax, dword [esi + 8]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x1c], eax
lea eax, [ecx - 1]
cmp eax, 1
ja 0x552aeb
movzx edx, word [esi + 0x10]
mov ecx, 0x14
movzx eax, word [esi + 0x12]
movzx edx, dx
movzx eax, ax
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], edx
jmp 0x552ba0
cmp ecx, 3
sete dl
cmp ecx, 7
sete al
or dl, al
je 0x552b2b
lea eax, [esi + 0x10]
push eax
call 0x580dfa
mov dword [edi + 0x10], eax
lea eax, [esi + 0x13]
mov dword [esp], eax
call 0x580dfa
mov dword [edi + 0x14], eax
lea eax, [esi + 0x16]
mov dword [esp], eax
call 0x580dfa
pop ecx
mov ecx, 0x19
mov dword [edi + 0x20], eax
jmp 0x552ba0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
jmp 0x552b7e
lea eax, [esi + 8]
push eax
call 0x580d20
mov dword [edi + 0x10], eax
lea eax, [esi + 0xc]
mov dword [esp], eax
call 0x580d20
mov dword [edi + 0x14], eax
lea eax, [esi + 0x10]
mov dword [esp], eax
call 0x580d20
mov dword [edi + 0x18], eax
lea eax, [esi + 0x14]
mov dword [esp], eax
call 0x580d20
mov dword [edi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esp], eax
call 0x580d20
pop edx
mov dword [edi + 0x20], eax
xor edx, edx
mov ecx, 0x1c
movzx eax, byte [esi + 0x1d]
mov dword [edi + 0x28], eax
movzx eax, byte [esi + 0x1e]
test al, al
je 0x552b9d
movzx eax, al
lea edx, [eax + 1]
mov dword [edi + 0x2c], edx
mov edx, dword [edi]
cmp edx, 9
jle 0x552bad
movzx eax, byte [esi + ecx]
jmp 0x552bd2
mov eax, dword [edi + 0xc]
test al, 0x80
jne 0x552bbd
mov dword [edi + 0x24], 0
jmp 0x552bd5
and eax, 0x7f
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
dec eax
cmp eax, 2
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x26
mov dword [edi + 0x24], eax
and dword [edi + 0xc], 0xf
cmp edx, 0xff
jne 0x552bec
push 0x4853a6
call fcn.00541692
pop eax
cmp dword [edi], 9
jle 0x552c15
mov eax, dword [ebp - 0x14]
mov edx, eax
dec edx
movzx ebx, byte [esi + eax - 1]
mov eax, esi
call fcn.005526fc
movzx eax, al
cmp ebx, eax
je 0x552c15
push 0x4853bc
call fcn.00541692
pop ebx
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x3c], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret