Function at 0x4c0940
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 + 0xa4]
push esi
mov esi, dword [esp + 0xa0]
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 esi
push ebx
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4c0996
pop esi
mov eax, 1
pop ebx
add esp, 0x90
ret
mov edx, dword [esp + 0x58]
mov ecx, dword [esi + 8]
push ebp
mov ebp, dword [esp + 0x64]
sub ebp, edx
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
imul edx, ecx
push edi
mov edi, dword [esp + 0x64]
sub eax, edi
imul edi, dword [esp + 0x14]
lea esi, [edx + ebx*4]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ecx
add esi, dword [edx + 4]
mov edx, dword [esp + 0x60]
lea edi, [edi + edx*4]
mov edx, dword [esp + 0xb0]
add edi, dword [edx + 4]
xor edx, edx
cmp byte [esp + 0x4c], dl
je 0x4c0bfc
mov ecx, ebp
sar ebp, 3
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x58]
and ecx, 7
sub ebx, ebp
mov ebp, dword [esp + 0x20]
add ebx, ecx
mov dword [esp + 0x1c], ecx
lea ebx, [ebp + ebx*4]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
mov ebx, ecx
sub ebx, ebp
mov ebp, dword [esp + 0x14]
cmp eax, edx
lea ebx, [ebp + ebx*4]
mov dword [esp + 0x28], ebx
jle 0x4c0d03
mov dword [esp + 0x20], eax
mov ebp, dword [esp + 0x24]
cmp ebp, edx
jle 0x4c0b89
lea eax, [edi + 6]
lea ecx, [esi + 6]
mov bl, byte [esi]
mov byte [esp + 0x12], bl
mov bl, byte [ecx - 5]
mov byte [esp + 0x13], bl
mov bl, byte [ecx - 4]
mov byte [edi], bl
mov bl, byte [esp + 0x13]
mov byte [eax - 5], bl
mov bl, byte [esp + 0x12]
mov byte [eax - 4], bl
mov byte [eax - 3], 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 - 2], bl
mov bl, byte [esp + 0x12]
mov byte [eax - 1], bl
mov bl, byte [esp + 0x13]
mov byte [eax], bl
mov byte [eax + 1], 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 + 2], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 3], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 4], bl
mov byte [eax + 5], 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 + 6], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 7], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 8], bl
mov byte [eax + 9], 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 + 0xa], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 0xb], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0xc], bl
mov byte [eax + 0xd], 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 + 0xe], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 0xf], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0x10], bl
mov byte [eax + 0x11], 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 + 0x12], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 0x13], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0x14], bl
mov byte [eax + 0x15], 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], dl
mov byte [eax + 0x16], bl
mov bl, byte [esp + 0x12]
mov byte [eax + 0x17], bl
mov bl, byte [esp + 0x13]
mov byte [eax + 0x18], bl
add edi, 0x20
add eax, 0x20
add esi, 0x20
add ecx, 0x20
dec ebp
jne 0x4c0a4e
mov ecx, dword [esp + 0x1c]
cmp ecx, edx
jle 0x4c0bd4
mov ebx, edi
lea ebp, [edi + 3]
sub ebx, esi
lea eax, [esi + 2]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov bl, byte [eax - 1]
mov cl, byte [eax - 2]
mov byte [esp + 0x12], bl
mov bl, byte [eax]
mov byte [ebp - 3], bl
mov bl, byte [esp + 0x12]
mov byte [ebp - 2], bl
mov ebx, dword [esp + 0x18]
mov byte [ebp], dl
add ebp, 4
mov byte [ebx + eax], cl
mov ecx, dword [esp + 0x14]
add eax, 4
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4c0b9f
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add edi, ebp
add esi, ebx
dec eax
mov dword [esp + 0x20], eax
jne 0x4c0a3c
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x90
ret
mov ebx, dword [esp + 0x8c]
imul ecx, dword [esp + 0x9c]
shl ebx, 2
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x84]
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]
cmp eax, edx
mov dword [esp + 0x3c], ecx
jle 0x4c0d03
add edi, 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edi
jmp 0x4c0c6d
mov ebx, dword [esp + 0x1c]
add ebx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
js 0x4c0c87
mov eax, dword [esp + 0x20]
add esi, eax
mov eax, dword [esp + 0x40]
sub ebx, eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x38]
cmp ebp, edx
mov dword [esp + 0x44], esi
jle 0x4c0cdf
mov eax, edi
mov edi, ebp
jmp 0x4c0c9d
mov ebx, dword [esp + 0x28]
add ebx, dword [esp + 0x48]
mov dword [esp + 0x28], ebx
js 0x4c0cb4
mov ecx, dword [esp + 0x30]
add esi, 4
sub ebx, ecx
mov dword [esp + 0x28], ebx
mov bl, byte [esi + 1]
mov cl, byte [esi]
mov byte [esp + 0x12], bl
mov bl, byte [esi + 2]
mov byte [eax - 2], bl
mov bl, byte [esp + 0x12]
mov byte [eax], cl
mov ecx, dword [esp + 0x34]
mov byte [eax - 1], bl
mov byte [eax + 1], dl
add esi, ecx
add eax, 4
dec edi
jne 0x4c0c99
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
lea esi, [eax + ecx]
mov eax, dword [esp + 0x18]
add edi, ebx
dec eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], eax
jne 0x4c0c69
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x90
ret