Function at 0x4c0560
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 esi
mov esi, 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 esi
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4c05b6
pop esi
mov eax, 1
pop ebx
add esp, 0x90
ret
mov esi, dword [esi + 8]
mov eax, dword [esp + 0x64]
mov ecx, dword [ebx + 8]
push ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x50]
sub eax, ebp
imul ebp, dword [esp + 0x1c]
imul esi, ecx
mov edx, dword [esp + 0x5c]
push edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x50]
sub edi, edx
lea ebp, [ebp + edx*4]
mov edx, dword [esp + 0xb0]
lea esi, [esi + ecx*4]
mov dword [esp + 0x1c], edi
add esi, dword [ebx + 4]
mov ebx, dword [edx + 4]
add ebp, ebx
mov bl, byte [esp + 0x4c]
xor edx, edx
mov dword [esp + 0x14], ebp
cmp bl, dl
je 0x4c0826
mov ebx, edi
sar edi, 3
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x58]
and ebx, 7
sub ecx, edi
mov edi, dword [esp + 0x18]
add ecx, ebx
mov dword [esp + 0x24], ebx
lea ecx, [edi + ecx*4]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, ebx
sub ecx, edi
mov edi, dword [esp + 0x20]
cmp eax, edx
lea ecx, [edi + ecx*4]
mov dword [esp + 0x1c], ecx
jle 0x4c092f
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x28]
cmp edi, edx
jle 0x4c07ae
lea eax, [ebp + 5]
lea ecx, [esi + 6]
mov bl, byte [esi]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x12], bl
mov bl, byte [ecx - 5]
mov byte [esp + 0x13], bl
mov bl, byte [ecx - 4]
mov byte [eax - 3], bl
mov bl, byte [esp + 0x13]
mov byte [eax - 4], bl
mov bl, byte [esp + 0x12]
mov byte [ebp], bl
mov byte [eax - 2], dl
mov bl, byte [ecx - 2]
mov byte [esp + 0x13], bl
mov bl, byte [ecx - 1]
mov byte [esp + 0x12], bl
mov bl, byte [ecx]
mov byte [eax + 1], bl
mov bl, byte [esp + 0x12]
mov byte [eax], bl
mov bl, byte [esp + 0x13]
mov byte [eax - 1], bl
mov byte [eax + 2], dl
mov bl, byte [ecx + 2]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 3]
mov byte [esp + 0x12], bl
mov bl, byte [ecx + 4]
mov byte [eax + 5], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 4], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 3], bl
mov byte [eax + 6], dl
mov bl, byte [ecx + 6]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 7]
mov byte [esp + 0x12], bl
mov bl, byte [ecx + 8]
mov byte [eax + 9], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 8], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 7], bl
mov byte [eax + 0xa], dl
mov bl, byte [ecx + 0xa]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 0xb]
mov byte [esp + 0x12], bl
mov bl, byte [ecx + 0xc]
mov byte [eax + 0xd], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 0xc], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0xb], bl
mov byte [eax + 0xe], dl
mov bl, byte [ecx + 0xe]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 0xf]
mov byte [esp + 0x12], bl
mov bl, byte [ecx + 0x10]
mov byte [eax + 0x11], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 0x10], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0xf], bl
mov byte [eax + 0x12], dl
mov bl, byte [ecx + 0x12]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 0x13]
mov byte [esp + 0x12], bl
mov bl, byte [ecx + 0x14]
mov byte [eax + 0x15], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 0x14], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0x13], bl
mov byte [eax + 0x16], dl
mov bl, byte [ecx + 0x16]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 0x17]
mov byte [esp + 0x12], bl
mov bl, byte [ecx + 0x18]
mov byte [eax + 0x19], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 0x18], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0x17], bl
mov byte [eax + 0x1a], dl
add ebp, 0x20
add eax, 0x20
add esi, 0x20
add ecx, 0x20
dec edi
mov dword [esp + 0x14], ebp
jne 0x4c066a
mov ebx, dword [esp + 0x24]
cmp ebx, edx
jle 0x4c07fa
mov ecx, ebp
lea edi, [ebp + 3]
lea eax, [esi + 2]
sub ecx, esi
mov dword [esp + 0x20], ebx
mov bl, byte [eax - 2]
add eax, 4
mov byte [esp + 0x13], bl
mov bl, byte [eax - 5]
mov byte [esp + 0x12], bl
mov bl, byte [eax - 4]
mov byte [ecx + eax - 4], bl
mov bl, byte [esp + 0x12]
mov byte [edi - 2], bl
mov bl, byte [esp + 0x13]
mov byte [edi - 3], bl
mov ebx, dword [esp + 0x20]
mov byte [edi], dl
add edi, 4
dec ebx
mov dword [esp + 0x20], ebx
jne 0x4c07c0
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add ebp, edi
add esi, ecx
dec eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jne 0x4c0658
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x90
ret
mov ecx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x18]
imul ebx, dword [esp + 0x9c]
shl ecx, 2
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x90]
cmp eax, edx
mov dword [esp + 0x3c], ebx
jle 0x4c092f
inc ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ebp
jmp 0x4c0899
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
js 0x4c08b3
mov eax, dword [esp + 0x18]
add esi, eax
mov eax, dword [esp + 0x40]
sub ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x38]
cmp edi, edx
mov dword [esp + 0x44], esi
jle 0x4c090b
mov eax, ebp
mov ebp, edi
jmp 0x4c08c9
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
js 0x4c08e0
mov ebx, dword [esp + 0x30]
add esi, 4
sub ecx, ebx
mov dword [esp + 0x14], ecx
mov bl, byte [esi + 1]
mov cl, byte [esi]
mov byte [esp + 0x12], bl
mov bl, byte [esi + 2]
mov byte [eax + 1], bl
mov bl, byte [esp + 0x12]
mov byte [eax - 1], cl
mov ecx, dword [esp + 0x34]
mov byte [eax], bl
mov byte [eax + 2], dl
add esi, ecx
add eax, 4
dec ebp
jne 0x4c08c5
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
lea esi, [eax + ebx]
mov eax, dword [esp + 0x1c]
add ebp, ecx
dec eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], eax
jne 0x4c0895
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x90
ret