Function at 0x4572c0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4575fe
xor ecx, ecx
xor edx, edx
mov ch, byte [eax]
mov dl, byte [eax + 2]
mov cl, byte [eax + 1]
push ebx
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 3]
xor ebx, ebx
shl ecx, 8
or ecx, edx
xor edx, edx
mov dword [eax], ecx
mov dl, byte [eax + 6]
xor ecx, ecx
push ebp
mov ch, byte [eax + 4]
push esi
mov cl, byte [eax + 5]
push edi
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 7]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dword [eax + 4], ecx
xor ecx, ecx
mov ch, byte [eax + 8]
mov cl, byte [eax + 9]
mov word [eax + 8], cx
mov dh, byte [eax + 0xa]
mov dl, byte [eax + 0xb]
xor ecx, ecx
mov word [eax + 0xa], dx
mov ch, byte [eax + 0xc]
mov cl, byte [eax + 0xd]
mov bl, byte [eax + 0xe]
lea edx, [eax + 0xc]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0xf]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov dword [edx], ecx
mov bl, byte [eax + 0x12]
xor ecx, ecx
mov ch, byte [eax + 0x10]
mov cl, byte [eax + 0x11]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0x13]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov dword [eax + 0x10], ecx
mov bl, byte [eax + 0x16]
xor ecx, ecx
mov ch, byte [eax + 0x14]
mov cl, byte [eax + 0x15]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0x17]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0x1a]
mov dword [eax + 0x14], ecx
xor ecx, ecx
mov ch, byte [eax + 0x18]
mov cl, byte [eax + 0x19]
shl ecx, 8
or ecx, ebx
shl ecx, 8
xor ebx, ebx
mov ebp, dword [esp + 0x18]
mov bl, byte [eax + 0x1b]
mov esi, edx
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0x1e]
mov dword [eax + 0x18], ecx
xor ecx, ecx
lea edi, [ebp + 0xc]
mov ch, byte [eax + 0x1c]
mov cl, byte [eax + 0x1d]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0x1f]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0x22]
mov dword [eax + 0x1c], ecx
xor ecx, ecx
mov ch, byte [eax + 0x20]
mov cl, byte [eax + 0x21]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0x23]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0x26]
mov dword [eax + 0x20], ecx
xor ecx, ecx
mov ch, byte [eax + 0x24]
mov cl, byte [eax + 0x25]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0x27]
shl ecx, 8
or ecx, ebx
mov dword [eax + 0x24], ecx
mov ecx, dword [eax]
mov dword [ebp], ecx
mov ecx, dword [eax + 4]
mov dword [ebp + 4], ecx
mov cx, word [eax + 8]
mov word [ebp + 8], cx
mov cx, word [eax + 0xa]
mov word [ebp + 0xa], cx
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov cl, byte [eax + 0x28]
lea edi, [ebp + 0x29]
mov byte [ebp + 0x28], cl
mov esi, dword [eax + 0x2c]
xor ecx, ecx
mov cl, byte [eax + 0x28]
mov dword [esp + 0x14], ecx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [eax + 0x30]
mov edi, ebx
mov byte [edi + ebp + 0x29], cl
mov esi, dword [eax + 0x34]
xor ecx, ecx
lea edi, [edi + ebp + 0x2a]
mov cl, byte [eax + 0x30]
mov dword [esp + 0x18], ecx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov ch, byte [eax + 0x38]
xor ebx, ebx
mov cl, byte [eax + 0x39]
mov bl, byte [eax + 0x3a]
mov edi, dword [esp + 0x14]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0x3b]
shl ecx, 8
mov esi, ecx
mov ecx, dword [esp + 0x18]
add ecx, edi
or esi, ebx
add ebp, ecx
xor ecx, ecx
mov dword [eax + 0x38], esi
xor ebx, ebx
mov dword [ebp + 0x2a], esi
mov ch, byte [eax + 0x38]
mov cl, byte [eax + 0x39]
mov bl, byte [eax + 0x3a]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0x3b]
lea edi, [ebp + 0x2e]
shl ecx, 8
mov esi, ecx
or esi, ebx
mov ecx, esi
mov dword [eax + 0x38], esi
mov esi, dword [eax + 0x3c]
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov bl, byte [eax + 6]
xor ecx, ecx
mov ch, byte [eax + 4]
mov cl, byte [eax + 5]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 7]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov dword [eax + 4], ecx
xor ecx, ecx
mov ch, byte [eax + 0xa]
mov cl, byte [eax + 0xb]
mov word [eax + 0xa], cx
mov bl, byte [eax + 0xe]
xor ecx, ecx
mov ch, byte [edx]
mov cl, byte [eax + 0xd]
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 0xf]
shl ecx, 8
or ecx, ebx
mov dword [edx], ecx
xor edx, edx
mov dh, byte [eax + 0x10]
xor ecx, ecx
mov dl, byte [eax + 0x11]
mov cl, byte [eax + 0x12]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x13]
shl edx, 8
or edx, ecx
mov dword [eax + 0x10], edx
xor edx, edx
mov dh, byte [eax + 0x14]
mov dl, byte [eax + 0x15]
xor ecx, ecx
mov cl, byte [eax + 0x16]
pop edi
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x17]
pop esi
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x1a]
mov dword [eax + 0x14], edx
xor edx, edx
pop ebp
mov dh, byte [eax + 0x18]
pop ebx
mov dl, byte [eax + 0x19]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x1b]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x1e]
mov dword [eax + 0x18], edx
xor edx, edx
mov dh, byte [eax + 0x1c]
mov dl, byte [eax + 0x1d]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x1f]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x22]
mov dword [eax + 0x1c], edx
xor edx, edx
mov dh, byte [eax + 0x20]
mov dl, byte [eax + 0x21]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x23]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x26]
mov dword [eax + 0x20], edx
xor edx, edx
mov dh, byte [eax + 0x24]
mov dl, byte [eax + 0x25]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x27]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 2]
mov dword [eax + 0x24], edx
xor edx, edx
mov dh, byte [eax]
mov dl, byte [eax + 1]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 3]
shl edx, 8
or edx, ecx
mov dword [eax], edx
ret