Function at 0x4c9fe0
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x4f5541
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 4]
push edi
mov dword [esp + 0x18], ebx
call fcn.004d6220
mov ecx, dword [0x520690]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4ca166
mov al, byte [ecx + 0x24]
test al, al
je 0x4ca0b4
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x4ca0aa
lea ecx, [esi + 0x40]
call fcn.004ca4d0
mov eax, dword [eax]
add esi, 4
push esi
mov ecx, eax
call fcn.004ca780
test al, al
je 0x4ca0a4
mov esi, dword [0x520690]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.004ca490
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.004ca4d0
mov esi, dword [eax]
mov ecx, edi
call fcn.004ca520
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x10]
push eax
push edx
call fcn.0048c410
test esi, esi
je 0x4ca08f
push 1
mov ecx, esi
call fcn.004caac0
mov ecx, dword [0x520690]
mov al, byte [ecx + 0x90]
test al, al
jne 0x4ca0aa
call fcn.004d90b0
mov ecx, dword [0x520690]
mov byte [ecx + 0x24], 0
mov ecx, dword [0x520690]
test ecx, ecx
je 0x4ca166
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x4ca166
lea eax, [esi + 0x54]
push 1
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x60], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x5c]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x6c], edx
call fcn.004ca660
mov eax, dword [eax + 8]
add esi, 4
push esi
mov eax, dword [eax]
mov ecx, eax
call fcn.004ca780
test al, al
je 0x4ca166
mov esi, dword [0x520690]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.004ca490
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.004ca4d0
mov esi, dword [eax]
mov ecx, edi
call fcn.004ca520
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x10]
push eax
push edx
call fcn.0048c410
test esi, esi
je 0x4ca151
push 1
mov ecx, esi
call fcn.004caac0
mov ecx, dword [0x520690]
mov al, byte [ecx + 0x90]
test al, al
jne 0x4ca166
call fcn.004d90b0
mov esi, dword [esp + 0xb8]
push 4
mov cx, word [esi + 4]
push ecx
mov ecx, dword [ebx + 4]
call fcn.004d6480
mov dx, word [esi + 6]
mov ecx, dword [ebx + 4]
push 6
push edx
call fcn.004d6480
mov ecx, dword [ebx + 4]
call fcn.004d6190
mov edi, dword [str.MENU_CHOOSED]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x6d]
mov ebp, ecx
mov ecx, 0xb
mov byte [esp + 0x6c], al
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
lea edi, [esp + 0x6c]
lea esi, [eax + 8]
mov al, byte [esp + 0x17]
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 + 0x20]
mov byte [esp + 0x20], al
call fcn.00411e90
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
call fcn.00412290
test al, al
je 0x4ca224
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x68]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00412270
mov eax, dword [esp + 0x14]
xor ebx, ebx
add eax, 8
mov ecx, ebp
mov edi, eax
lea esi, [esp + 0x68]
xor edx, edx
mov dword [esp + 0xb0], ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4ca28e
lea esi, [eax + ebp]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
call fcn.00412290
test al, al
je 0x4ca281
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00412270
lea ecx, [esp + 0x1c]
push ecx
call fcn.004cd080
add esp, 4
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 4]
mov dl, byte [eax + 5]
cmp cl, 0xff
mov byte [esp + 0x50], cl
mov byte [esp + 0x54], dl
jne 0x4ca2ae
cmp dl, cl
jne 0x4ca2ae
or esi, 0xffffffff
jmp 0x4ca2c7
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
and esi, 0xff
and edx, 0xff
shl esi, 8
add esi, edx
mov cl, byte [eax + 6]
mov dl, byte [eax + 7]
xor ax, ax
mov al, cl
xor cx, cx
shl eax, 8
mov cl, dl
add eax, ecx
mov ecx, dword [esp + 0xb8]
mov word [ecx + 4], si
mov word [ecx + 6], ax
mov ecx, dword [0x520690]
cmp ecx, ebx
je 0x4ca444
mov edx, dword [ecx]
push esi
call dword [edx + 0xc]
mov ecx, dword [0x520690]
cmp byte [ecx + 0x90], 1
jne 0x4ca444
cmp eax, 1
je 0x4ca329
cmp eax, 3
jne 0x4ca43c
cmp esi, 0xffffffff
je 0x4ca444
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], dl
call fcn.00411e90
mov al, byte [esp + 0x13]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x3c], al
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov ecx, dword [0x520690]
mov edx, dword [0x4f73d0]
push edx
push ebx
lea esi, [ecx + 4]
lea ecx, [esp + 0x34]
push esi
mov byte [esp + 0xbc], 1
call fcn.00411c90
add esi, 0x10
lea ecx, [esp + 0x3c]
push esi
call fcn.004c9860
sub esp, 0x10
lea ecx, [esp + 0x3c]
mov eax, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.004ca870
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.004c9be0
xor esi, esi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
cmp ecx, ebx
jne 0x4ca3af
xor eax, eax
jmp 0x4ca3b6
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x4ca3d8
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x5c], esp
push esi
push ecx
lea ecx, [esp + 0x44]
call fcn.004ca9a0
mov ecx, edi
call fcn.004c9dc0
inc esi
jmp 0x4ca39f
push edx
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0xb8], 2
call fcn.00476d50
mov edx, dword [esp + 0x40]
push edx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push 1
mov dword [esp + 0x4c], ebx
mov byte [esp + 0xb4], 0
call fcn.00411e90
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0xb4], 0xffffffff
call fcn.00411e90
mov ecx, dword [0x520690]
mov ebx, dword [esp + 0x18]
jmp 0x4ca0b4
cmp eax, 2
jne 0x4ca444
or esi, 0xffffffff
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x4ca468
mov al, byte [ecx - 1]
test al, al
je 0x4ca45e
cmp al, 0xff
je 0x4ca45e
dec al
mov byte [ecx - 1], al
jmp 0x4ca468
dec ecx
push ecx
call fcn.004deb10
add esp, 4
mov ecx, dword [esp + 0xa8]
mov ax, si
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa4
ret 4