Function at 0x5620b2
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x18], eax
cmp byte [edi + 5], 0
push esi
mov esi, ecx
je 0x5620e6
push esi
push edi
call fcn.00561df0
add esp, 8
test eax, eax
jne 0x56236c
lea eax, [esi + 0x14]
push eax
push edi
call fcn.005616d0
add esp, 8
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00586584
add esp, 0x1c
ret
mov eax, dword [edi + 1]
cmp word [eax + 2], 1
jg 0x5621ef
cmp byte [edi], 0x73
jne 0x56215f
mov edx, dword [esi]
movsx eax, byte [esi + 4]
movsx ecx, byte [esi + 5]
mov dword [esp + 8], edx
lea edx, [esp + 4]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x14]
push edx
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], 0x14
call fcn.005616d0
mov esi, dword [esp + 0xc]
add esp, 8
test eax, eax
jne 0x56214c
test esi, esi
je 0x56214c
mov eax, esi
lea ecx, [esp + 8]
mov edx, edi
call fcn.00561670
mov dword [edi + 0xa], esi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00586584
add esp, 0x1c
ret
lea eax, [esp + 4]
push eax
push edi
call fcn.005616d0
add esp, 8
test eax, eax
mov eax, dword [esp + 4]
jne 0x5621d6
cmp eax, 0x14
jne 0x5621d6
lea ecx, [esp + 8]
mov edx, edi
call fcn.00561670
test eax, eax
jne 0x56236c
movsx ecx, byte [edi]
cmp ecx, 0x72
jne 0x56236c
mov dl, byte [esp + 0xc]
xor ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov cl, byte [esp + 0x10]
mov byte [esi + 4], dl
mov edx, dword [esp + 8]
mov byte [esi + 5], cl
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00586584
add esp, 0x1c
ret
mov ecx, esi
mov edx, edi
call fcn.00561670
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00586584
add esp, 0x1c
ret
test byte [eax + 6], 0x40
push ebx
jne 0x56233b
cmp byte [edi], 0x73
mov dword [esp + 8], 0x14
jne 0x56229a
mov edx, dword [esi]
movzx eax, byte [esi + 4]
movzx ecx, byte [esi + 5]
mov dword [esp + 0xc], edx
movzx edx, byte [esi + 8]
mov byte [esp + 0x10], al
movzx eax, byte [esi + 6]
mov byte [esp + 0x11], cl
movzx ecx, byte [esi + 7]
mov byte [esp + 0x14], dl
movzx edx, byte [esi + 0xb]
mov byte [esp + 0x12], al
movzx eax, byte [esi + 9]
mov byte [esp + 0x13], cl
movzx ecx, byte [esi + 0xa]
mov byte [esp + 0x17], dl
lea edx, [esp + 8]
mov byte [esp + 0x15], al
mov eax, dword [esi + 0x10]
mov byte [esp + 0x16], cl
mov ecx, dword [esi + 0x14]
push edx
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.005616d0
mov esi, dword [esp + 0x10]
add esp, 8
test eax, eax
jne 0x562286
test esi, esi
je 0x562286
mov eax, esi
lea ecx, [esp + 0xc]
mov edx, edi
call fcn.00561670
pop ebx
mov dword [edi + 0xa], esi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00586584
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push edi
call fcn.005616d0
mov ebx, dword [esp + 0x10]
add esp, 8
test eax, eax
jne 0x5622c1
test ebx, ebx
je 0x5622c1
mov eax, ebx
lea ecx, [esp + 0xc]
mov edx, edi
call fcn.00561670
movsx ecx, byte [edi]
mov dword [edi + 0xa], ebx
cmp ecx, 0x72
jne 0x56236b
movzx edx, byte [esp + 0x10]
xor ecx, ecx
mov word [esi + 0xc], cx
movzx ecx, byte [esp + 0x11]
mov byte [esi + 4], dl
mov edx, dword [esp + 0xc]
mov byte [esi + 5], cl
movzx ecx, byte [esp + 0x12]
mov dword [esi], edx
movzx edx, byte [esp + 0x13]
mov byte [esi + 6], cl
movzx ecx, byte [esp + 0x14]
mov byte [esi + 7], dl
movzx edx, byte [esp + 0x15]
mov byte [esi + 8], cl
movzx ecx, byte [esp + 0x16]
mov byte [esi + 9], dl
movzx edx, byte [esp + 0x17]
mov byte [esi + 0xa], cl
mov ecx, dword [esp + 0x18]
mov byte [esi + 0xb], dl
mov edx, dword [esp + 0x1c]
pop ebx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00586584
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x18
call fcn.005616d0
mov ebx, dword [esp + 0x10]
add esp, 8
test eax, eax
jne 0x562368
test ebx, ebx
je 0x562368
mov eax, ebx
mov ecx, esi
mov edx, edi
call fcn.00561670
mov dword [edi + 0xa], ebx
pop ebx
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.00586584
add esp, 0x1c
ret