Function at 0x4c2610
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub esp, 0x90
push ebx
mov ebx, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xa8]
push eax
push ecx
mov ecx, dword [esp + 0xbc]
lea eax, [esp + 0x4c]
push edx
mov edx, dword [esp + 0xbc]
push eax
push ecx
push edx
push ebx
push edi
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4c2666
pop edi
mov eax, 1
pop ebx
add esp, 0x90
ret
mov ecx, dword [esp + 0x60]
push ebp
mov edx, dword [ebx + 8]
push esi
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
sub ecx, esi
mov esi, dword [edi + 8]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x54]
sub eax, ebp
imul ebp, dword [esp + 0x18]
imul esi, edx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
lea esi, [esi + edx*4]
add esi, dword [ebx + 4]
mov ebx, dword [esp + 0x60]
lea ebp, [ebp + ebx*4]
mov ebx, dword [edi + 4]
add ebp, ebx
mov bl, byte [esp + 0x4c]
test bl, bl
mov dword [esp + 0x14], ebp
je 0x4c290e
mov edi, dword [esp + 0x58]
and ecx, 7
sub edx, edi
mov edi, dword [esp + 0x20]
add edx, ecx
mov ebx, dword [esp + 0x1c]
sar ebx, 3
lea edx, [edi + edx*4]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov edx, ecx
sub edx, edi
mov edi, dword [esp + 0x18]
test eax, eax
lea edx, [edi + edx*4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edx
jle 0x4c2a1a
mov dword [esp + 0x1c], eax
mov dl, 0xff
test ebx, ebx
jle 0x4c288e
lea eax, [ebp + 7]
lea ecx, [esi + 5]
mov edi, ebx
mov bl, byte [ecx - 3]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x12], bl
mov bl, byte [ecx - 4]
mov byte [esp + 0x13], bl
mov bl, byte [esi]
mov byte [eax - 5], bl
mov bl, byte [esp + 0x13]
mov byte [eax - 6], bl
mov bl, byte [esp + 0x12]
mov byte [ebp], bl
mov byte [eax - 4], dl
mov bl, byte [ecx - 2]
mov byte [eax - 4], bl
mov bl, byte [ecx + 1]
mov byte [esp + 0x13], bl
mov bl, byte [ecx]
mov byte [esp + 0x12], bl
mov bl, byte [ecx - 1]
mov byte [eax - 1], bl
mov bl, byte [esp + 0x12]
mov byte [eax - 2], bl
mov bl, byte [esp + 0x13]
mov byte [eax - 3], bl
mov byte [eax], dl
mov bl, byte [ecx + 2]
mov byte [eax], bl
mov bl, byte [ecx + 5]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 4]
mov byte [esp + 0x12], bl
mov bl, byte [ecx + 3]
mov byte [eax + 3], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 2], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 1], bl
mov byte [eax + 4], dl
mov bl, byte [ecx + 6]
mov byte [eax + 4], bl
mov bl, byte [ecx + 9]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 8]
mov byte [esp + 0x12], bl
mov bl, byte [ecx + 7]
mov byte [eax + 7], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 6], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 5], bl
mov byte [eax + 8], dl
mov bl, byte [ecx + 0xa]
mov byte [eax + 8], bl
mov bl, byte [ecx + 0xd]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 0xc]
mov byte [esp + 0x12], bl
mov bl, byte [ecx + 0xb]
mov byte [eax + 0xb], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 0xa], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 9], bl
mov byte [eax + 0xc], dl
mov bl, byte [ecx + 0xe]
mov byte [eax + 0xc], bl
mov bl, byte [ecx + 0x11]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 0x10]
mov byte [esp + 0x12], bl
mov bl, byte [ecx + 0xf]
mov byte [eax + 0xf], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 0xe], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0xd], bl
mov byte [eax + 0x10], dl
mov bl, byte [ecx + 0x12]
mov byte [eax + 0x10], bl
mov bl, byte [ecx + 0x15]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 0x14]
add ebp, 0x20
mov byte [esp + 0x12], bl
mov bl, byte [ecx + 0x13]
mov byte [eax + 0x13], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 0x12], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0x11], bl
mov byte [eax + 0x14], dl
mov bl, byte [ecx + 0x16]
add esi, 0x20
mov byte [eax + 0x14], bl
mov bl, byte [ecx + 0x19]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 0x18]
mov byte [esp + 0x12], bl
mov bl, byte [ecx + 0x17]
mov byte [eax + 0x17], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 0x16], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0x15], bl
mov byte [eax + 0x18], dl
mov bl, byte [ecx + 0x1a]
add ecx, 0x20
mov byte [eax + 0x18], bl
add eax, 0x20
dec edi
mov dword [esp + 0x14], ebp
jne 0x4c2717
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
test ecx, ecx
jle 0x4c28e2
mov ebx, ebp
lea edi, [ebp + 3]
sub ebx, esi
lea eax, [esi + 1]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ecx
mov cl, byte [eax + 1]
mov bl, byte [eax - 1]
mov byte [esp + 0x12], cl
mov cl, byte [eax]
mov byte [edi - 1], bl
mov ebx, dword [esp + 0x20]
mov byte [edi], dl
add edi, 4
mov byte [ebx + eax], cl
mov cl, byte [esp + 0x12]
mov byte [edi - 7], cl
mov cl, byte [eax + 2]
mov byte [edi - 4], cl
mov ecx, dword [esp + 0x18]
add eax, 4
dec ecx
mov dword [esp + 0x18], ecx
jne 0x4c28a4
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
add ebp, eax
mov eax, dword [esp + 0x1c]
add esi, edi
dec eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
jne 0x4c2707
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x90
ret
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x20]
shl edx, 2
imul ebx, dword [esp + 0x9c]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x90]
test eax, eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], edx
jle 0x4c2a1a
add ebp, 3
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
mov dl, 0xff
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
add eax, edi
mov dword [esp + 0x14], eax
js 0x4c29a3
mov edi, dword [esp + 0x20]
add esi, edi
mov edi, dword [esp + 0x2c]
sub eax, edi
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x40]
mov dword [esp + 0x44], esi
test ecx, ecx
jle 0x4c29fa
mov eax, ebp
mov ebp, ecx
add edi, dword [esp + 0x48]
js 0x4c29c2
mov ecx, dword [esp + 0x34]
add esi, 4
sub edi, ecx
mov bl, byte [esi + 1]
mov cl, byte [esi + 2]
mov byte [esp + 0x12], bl
mov bl, byte [esi]
mov byte [eax - 1], bl
mov bl, byte [esp + 0x12]
mov byte [eax - 2], bl
mov byte [eax - 3], cl
mov byte [eax], dl
mov cl, byte [esi + 3]
mov byte [eax], cl
mov ecx, dword [esp + 0x38]
add esi, ecx
add eax, 4
dec ebp
jne 0x4c29b3
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
add ebp, edi
lea esi, [eax + ebx]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
jne 0x4c2983
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x90
ret