Function at 0x4c4ca0
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 ebp
mov ebp, 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 ebp
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4c4cf6
pop ebp
mov eax, 1
pop ebx
add esp, 0x90
ret
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x58]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x50]
push edi
mov edi, dword [esp + 0x68]
imul esi, ecx
sub edi, edx
mov edx, dword [esp + 0x64]
sub eax, edx
imul edx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x50]
lea esi, [esi + ecx*4]
add esi, dword [ebx + 4]
mov ebx, dword [esp + 0x60]
lea edx, [edx + ebx*4]
mov ebx, dword [ebp + 4]
add edx, ebx
mov bl, byte [esp + 0x4c]
test bl, bl
mov dword [esp + 0x14], edx
je 0x4c4f43
mov ebx, edi
mov ebp, edi
sar ebx, 3
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x58]
and ebp, 7
sub ecx, ebx
mov ebx, dword [esp + 0x1c]
add ecx, ebp
mov dword [esp + 0x20], ebp
lea ecx, [ebx + ecx*4]
mov dword [esp + 0x2c], ecx
mov ecx, ebp
sub ecx, edi
mov edi, dword [esp + 0x18]
test eax, eax
lea ecx, [edi + ecx*4]
mov dword [esp + 0x24], ecx
jle 0x4c5052
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x28]
test edi, edi
jle 0x4c4ee1
lea eax, [edx + 6]
lea ecx, [esi + 6]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0xb4]
mov edx, dword [esi]
cmp edx, edi
je 0x4c4dce
mov bl, byte [ecx - 5]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x13], bl
mov bl, byte [ecx - 4]
mov byte [ebp], bl
mov bl, byte [esp + 0x13]
mov byte [eax - 5], bl
mov byte [eax - 4], dl
mov byte [eax - 3], 0xff
mov edx, dword [ecx - 2]
cmp edx, edi
je 0x4c4dee
mov bl, byte [ecx - 1]
mov byte [esp + 0x13], bl
mov bl, byte [ecx]
mov byte [eax - 2], bl
mov bl, byte [esp + 0x13]
mov byte [eax - 1], bl
mov byte [eax], dl
mov byte [eax + 1], 0xff
mov edx, dword [ecx + 2]
cmp edx, edi
je 0x4c4e10
mov bl, byte [ecx + 3]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 4]
mov byte [eax + 2], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 3], bl
mov byte [eax + 4], dl
mov byte [eax + 5], 0xff
mov edx, dword [ecx + 6]
cmp edx, edi
je 0x4c4e32
mov bl, byte [ecx + 7]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 8]
mov byte [eax + 6], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 7], bl
mov byte [eax + 8], dl
mov byte [eax + 9], 0xff
mov edx, dword [ecx + 0xa]
cmp edx, edi
je 0x4c4e54
mov bl, byte [ecx + 0xb]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 0xc]
mov byte [eax + 0xa], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0xb], bl
mov byte [eax + 0xc], dl
mov byte [eax + 0xd], 0xff
mov edx, dword [ecx + 0xe]
cmp edx, edi
je 0x4c4e76
mov bl, byte [ecx + 0xf]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 0x10]
mov byte [eax + 0xe], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0xf], bl
mov byte [eax + 0x10], dl
mov byte [eax + 0x11], 0xff
mov edx, dword [ecx + 0x12]
cmp edx, edi
je 0x4c4e98
mov bl, byte [ecx + 0x13]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 0x14]
mov byte [eax + 0x12], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0x13], bl
mov byte [eax + 0x14], dl
mov byte [eax + 0x15], 0xff
mov edx, dword [ecx + 0x16]
cmp edx, edi
je 0x4c4eba
mov bl, byte [ecx + 0x17]
mov byte [esp + 0x13], bl
mov bl, byte [ecx + 0x18]
mov byte [eax + 0x16], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0x17], bl
mov byte [eax + 0x18], dl
mov byte [eax + 0x19], 0xff
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add edx, 0x20
add eax, 0x20
add esi, 0x20
add ecx, 0x20
dec edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
jne 0x4c4da2
mov ebp, dword [esp + 0x20]
test ebp, ebp
jle 0x4c4f17
mov ebx, edx
mov edi, esi
sub ebx, esi
mov edx, dword [esp + 0xb4]
mov eax, dword [edi]
cmp eax, edx
je 0x4c4f09
mov cl, byte [edi + 1]
mov dl, byte [edi + 2]
push eax
push ecx
push edx
lea ecx, [ebx + edi]
call fcn.004c4850
add edi, 4
dec ebp
jne 0x4c4eeb
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
add edx, edi
add esi, ecx
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
jne 0x4c4d8c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret
mov ecx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x80]
shl ecx, 2
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x1c]
imul ecx, dword [esp + 0x9c]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x90]
test eax, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], ebx
jle 0x4c5052
add edx, 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
add eax, ebx
mov dword [esp + 0x14], eax
js 0x4c4fd6
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x40]
add esi, ebp
sub eax, ebx
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x44], esi
test edi, edi
jle 0x4c5032
mov eax, edx
mov dword [esp + 0x20], edi
add ebp, dword [esp + 0x48]
js 0x4c4ff7
mov ecx, dword [esp + 0x30]
add esi, 4
sub ebp, ecx
mov edx, dword [esp + 0xb4]
mov ecx, dword [esi]
cmp ecx, edx
je 0x4c5016
mov dl, byte [esi + 1]
mov bl, byte [esi + 2]
mov byte [eax - 2], bl
mov byte [eax - 1], dl
mov byte [eax], cl
mov byte [eax + 1], 0xff
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
add esi, ebx
add eax, 4
dec ecx
mov dword [esp + 0x20], ecx
jne 0x4c4fe8
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x18]
add edx, ebx
lea esi, [eax + ecx]
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jne 0x4c4fb6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret