Function at 0x4fcc20
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xe4
push ebx
mov ebx, dword [esp + 0xf0]
push ebp
push esi
push edi
push ebx
call fcn.004fc7c0
mov esi, eax
test esi, esi
jne 0x4fd08f
mov esi, dword [esp + 0xf8]
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.004fd0c0
test eax, eax
jne 0x4fd091
lea ecx, [esp + 0x6c]
push 0x20
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x34], ebp
jge 0x4fcc85
mov eax, 0xfffffffc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret 8
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 8]
mov eax, dword [esp + 0x54]
sub edi, esi
inc edi
cmp edi, eax
mov dword [esp + 0x14], edi
jbe 0x4fcca0
mov dword [esp + 0x14], eax
mov edi, eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
sub eax, ecx
mov ecx, dword [esp + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jbe 0x4fccb9
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], 0xfffffff0
cmp eax, 1
jne 0x4fccf7
mov eax, dword [esp + 0x58]
cmp eax, 8
jne 0x4fccdd
mov dword [esp + 0x10], 1
jmp 0x4fcd21
cmp eax, 1
jne 0x4fccec
mov dword [esp + 0x10], 2
jmp 0x4fcd21
cmp eax, 4
jne 0x4fcd21
mov dword [esp + 0x10], eax
jmp 0x4fcd21
mov ecx, dword [esp + 0x58]
cmp eax, 4
jne 0x4fcd0f
cmp ecx, 1
jne 0x4fcd0f
mov dword [esp + 0x10], 3
jmp 0x4fcd21
cmp eax, 3
jne 0x4fcd21
cmp ecx, 8
jne 0x4fcd21
mov dword [esp + 0x10], 5
mov esi, dword [esp + 0x10]
cmp esi, 0xfffffff0
je 0x4fcfc8
push 0
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
xor eax, eax
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x5c]
mov dl, byte [ecx + 0x598e47]
mov dword [esp + 0x2c], edi
imul edx, eax
add edx, 0x10004
xor esi, esi
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], 3
call fcn.004e814e
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x4fcd93
mov esi, 0xfffffff2
jmp 0x4fcfc8
mov ecx, dword [esp + 0x40]
lea ebp, [edi + 0x10004]
lea eax, [edi + ecx + 0x10004]
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0x10], 5
jne 0x4fcdbd
mov edx, dword [esp + 0x60]
mov dword [esp + 0x3c], edx
jmp 0x4fcdc1
mov dword [esp + 0x3c], ecx
mov ebx, dword [ebx + 0x24]
mov ecx, dword [esp + 0xfc]
xor eax, eax
mov ax, word [ebx + 0xe]
mov ebx, dword [ebx + 8]
mov edx, dword [ecx + 8]
sub ebx, edx
mov edx, eax
imul edx, dword [ecx + 4]
dec ebx
imul ebx, dword [ecx + 0x14]
shr eax, 3
imul eax, dword [esp + 0x18]
shr edx, 3
add ebx, edx
mov edx, dword [ecx]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
add ebx, edx
test eax, eax
mov dword [esp + 0x38], ebx
je 0x4fcfb2
cmp esi, dword [esp + 0x28]
jb 0x4fce87
mov eax, dword [esp + 0x30]
mov ebx, 0
sub eax, esi
mov edx, dword [esp + 0x1c]
sets bl
dec ebx
add esi, edi
and ebx, eax
mov ecx, ebx
add edx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x10004
sub ecx, ebx
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll__lread]
add eax, ebx
mov ecx, eax
mov dword [esp + 0x30], ecx
je 0x4fcfae
mov edx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
lea eax, [edx + edx]
mov edx, eax
mov eax, ecx
sub eax, edx
test eax, eax
jle 0x4fce73
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
lea ecx, [esi + edi]
push eax
push ecx
push ebp
call fcn.004fd330
mov edx, dword [esp + 0x1c]
add esi, eax
add esp, 0xc
mov dword [esp + 0x14], esi
lea eax, [edx - 1]
cmp eax, 4
ja case.default.0x4fceaf
jmp dword [eax*4 + 0x4fd0a0]
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ebp - 1]
test cl, 1
jne 0x4fced2
mov al, byte [esi]
and eax, 0xf
jmp 0x4fceda
xor eax, eax
mov al, byte [esi]
shr eax, 4
dec esi
mov byte [ecx + ebp - 1], al
dec ecx
jne 0x4fcec6
jmp case.0x4fceaf.1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
push eax
push ecx
push ebp
push ebx
call fcn.004fd390
add esp, 0x10
jmp case.default.0x4fceaf
mov eax, dword [esp + 0xfc]
mov edx, dword [esp + 0x18]
push edx
mov ecx, dword [eax + 4]
push ecx
push ebp
push ebx
call fcn.004fd540
jmp case.default.0x4fceaf
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ecx, eax
mov esi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
add edx, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], edx
dec ecx
mov dword [esp + 0x24], ecx
jne 0x4fcf98
mov ecx, dword [esp + 0x44]
push eax
push ecx
push ebp
mov dword [esp + 0x30], 3
mov dword [esp + 0x2c], ecx
call fcn.004fd400
add esp, 0xc
mov ecx, dword [esp + 0x48]
mov esi, ebp
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx + 0x14]
sub ebx, edx
dec eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], eax
jmp 0x4fcfa0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4fce09
jmp 0x4fcfb2
mov edi, dword [esp + 0x1c]
push edi
call fcn.004e7888
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x100]
add esp, 4
xor esi, esi
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
test esi, esi
jne 0x4fd08f
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4fcfee
mov edx, dword [esp + 0xf8]
push eax
push edx
call fcn.004fd1f0
jmp 0x4fcff0
xor eax, eax
cmp eax, 2
mov dword [ebx + 0x1c], eax
jne 0x4fd01f
mov eax, dword [ebx + 0x18]
mov cl, byte [eax + 2]
mov dl, byte [eax + 6]
cmp cl, dl
jne 0x4fd01f
mov dl, byte [eax + 1]
mov cl, byte [eax + 5]
cmp dl, cl
jne 0x4fd01f
mov cl, byte [eax]
mov dl, byte [eax + 4]
cmp cl, dl
jne 0x4fd01f
mov dword [ebx + 0x1c], 0
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
and ecx, 0xfffffffe
test eax, eax
mov dword [ebx + 0x20], ecx
jne 0x4fd082
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4fd07c
mov eax, dword [esp + 0x10]
cmp eax, 3
je 0x4fd044
cmp eax, 4
jne 0x4fd07c
mov dword [ebx + 0x1c], 0x10
xor ecx, ecx
mov eax, 0x598e19
mov edi, dword [ebx + 0x18]
mov dl, byte [eax - 1]
add eax, 3
mov byte [edi + ecx*4 + 2], dl
mov edi, dword [ebx + 0x18]
mov dl, byte [eax - 3]
mov byte [edi + ecx*4 + 1], dl
mov edi, dword [ebx + 0x18]
mov dl, byte [eax - 2]
mov byte [edi + ecx*4], dl
mov edx, dword [ebx + 0x1c]
inc ecx
cmp ecx, edx
jl 0x4fd052
jmp 0x4fd082
push ebx
call fcn.004fc7e0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4fd08f
push ebx
call fcn.004fc630
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret 8