Function at 0x4fa550
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x52e488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov ecx, dword [edi + 4]
call fcn.00501b10
mov ecx, dword [0x557854]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4fa6a2
mov al, byte [ecx + 0x24]
test al, al
je 0x4fa620
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x4fa616
lea ecx, [esi + 0x40]
call fcn.004faa10
mov eax, dword [eax]
add esi, 4
push esi
mov ecx, eax
call fcn.004fac50
test al, al
je 0x4fa610
mov esi, dword [0x557854]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.004fa9d0
lea ebx, [esi + 0x40]
mov ecx, ebx
call fcn.004faa10
mov esi, dword [eax]
mov ecx, ebx
call fcn.004faa60
lea ecx, [esi + 0x10]
call fcn.004fa990
test esi, esi
je 0x4fa5fb
mov ecx, esi
call fcn.004fafb0
push esi
call fcn.00514140
add esp, 4
mov ecx, dword [0x557854]
mov al, byte [ecx + 0x90]
test al, al
jne 0x4fa616
call fcn.00509910
mov ecx, dword [0x557854]
mov byte [ecx + 0x24], 0
mov ecx, dword [0x557854]
test ecx, ecx
je 0x4fa6a2
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x4fa6a2
lea ecx, [esi + 0x40]
call fcn.004faa10
mov eax, dword [eax]
add esi, 4
push esi
mov ecx, eax
call fcn.004fac50
test al, al
je 0x4fa6a2
mov esi, dword [0x557854]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.004fa9d0
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.004faa10
mov esi, dword [eax]
mov ecx, edi
call fcn.004faa60
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x10]
push eax
push edx
call fcn.0048ca40
test esi, esi
je 0x4fa689
push 1
mov ecx, esi
call fcn.004faf90
mov ecx, dword [0x557854]
mov al, byte [ecx + 0x90]
test al, al
jne 0x4fa69e
call fcn.00509910
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x64]
mov ecx, dword [edi + 4]
push 4
mov ax, word [esi + 4]
push eax
call fcn.00501d70
mov cx, word [esi + 6]
push 6
push ecx
mov ecx, dword [edi + 4]
call fcn.00501d70
mov ecx, dword [edi + 4]
call fcn.00501a80
mov edi, dword [str.MENU_CHOOSED]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
mov ebx, ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
call fcn.004013e0
mov edi, 0x554048
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.004016f0
test al, al
je 0x4fa734
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov eax, ecx
mov esi, 0x554048
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.004016d0
mov edx, dword [esp + 0x14]
mov esi, dword [str.MENU_CHOOSED]
mov ecx, ebx
xor eax, eax
lea edi, [edx + 8]
mov dword [esp + 0x5c], 0
repe cmpsb byte [esi], byte es:[edi]
jne 0x4fa7a2
mov ecx, edx
push 1
lea eax, [ecx + 8]
or ecx, 0xffffffff
lea esi, [eax + ebx]
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.004016f0
test al, al
je 0x4fa795
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.004016d0
lea eax, [esp + 0x24]
push eax
call fcn.00500d20
add esp, 4
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 4]
mov dl, byte [eax + 5]
cmp cl, 0xff
mov byte [esp + 0x18], cl
mov byte [esp + 0x1c], dl
jne 0x4fa7c2
cmp dl, cl
jne 0x4fa7c2
or esi, 0xffffffff
jmp 0x4fa7db
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
and esi, 0xff
and ecx, 0xff
shl esi, 8
add esi, ecx
mov cl, byte [eax + 6]
mov dl, byte [eax + 7]
xor ax, ax
xor edi, edi
mov al, cl
mov ecx, dword [esp + 0x64]
movzx dx, dl
shl eax, 8
add eax, edx
mov word [ecx + 4], si
mov word [ecx + 6], ax
mov ecx, dword [0x557854]
cmp ecx, edi
je 0x4fa94a
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov ecx, dword [0x557854]
cmp byte [ecx + 0x90], 1
jne 0x4fa94a
cmp eax, 1
je 0x4fa83b
cmp eax, 3
jne 0x4fa942
cmp esi, 0xffffffff
je 0x4fa94a
mov dl, byte [esp + 0x64]
push edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], dl
call fcn.004013e0
mov al, byte [esp + 0x64]
mov dword [esp + 0x48], edi
mov byte [esp + 0x44], al
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov ecx, dword [0x557854]
mov edx, dword [0x530168]
push edx
push edi
lea esi, [ecx + 4]
lea ecx, [esp + 0x3c]
push esi
mov byte [esp + 0x68], 1
call fcn.004011e0
add esi, 0x10
lea ecx, [esp + 0x44]
push esi
call fcn.004f8280
sub esp, 0x10
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004fad40
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.004fa150
xor esi, esi
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
cmp ecx, edi
jne 0x4fa8be
xor eax, eax
jmp 0x4fa8c5
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x4fa8e7
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
push ecx
lea ecx, [esp + 0x4c]
call fcn.004fae70
mov ecx, ebx
call fcn.004fa330
inc esi
jmp 0x4fa8ae
push edx
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64], 2
call fcn.0041ff50
mov edx, dword [esp + 0x48]
push edx
call fcn.00514140
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
push 1
mov dword [esp + 0x54], edi
mov byte [esp + 0x60], 0
call fcn.004013e0
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], 0xffffffff
call fcn.004013e0
mov ecx, dword [0x557854]
mov edi, dword [esp + 0x10]
jmp 0x4fa620
cmp eax, 2
jne 0x4fa94a
or esi, 0xffffffff
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x4fa96e
mov al, byte [ecx - 1]
test al, al
je 0x4fa964
cmp al, 0xff
je 0x4fa964
dec al
mov byte [ecx - 1], al
jmp 0x4fa96e
dec ecx
push ecx
call fcn.00514140
add esp, 4
mov ecx, dword [esp + 0x54]
mov ax, si
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret 4