Function at 0x4c9790
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x4f54d1
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.004d5890
mov ecx, dword [0x520530]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4c9916
mov al, byte [ecx + 0x24]
test al, al
je 0x4c9864
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x4c985a
lea ecx, [esi + 0x40]
call fcn.004c9c80
mov eax, dword [eax]
add esi, 4
push esi
mov ecx, eax
call fcn.004c9f30
test al, al
je 0x4c9854
mov esi, dword [0x520530]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.004c9c40
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.004c9c80
mov esi, dword [eax]
mov ecx, edi
call fcn.004c9cd0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x10]
push eax
push edx
call fcn.0048c5a0
test esi, esi
je 0x4c983f
push 1
mov ecx, esi
call fcn.004ca270
mov ecx, dword [0x520530]
mov al, byte [ecx + 0x90]
test al, al
jne 0x4c985a
call fcn.004d8700
mov ecx, dword [0x520530]
mov byte [ecx + 0x24], 0
mov ecx, dword [0x520530]
test ecx, ecx
je 0x4c9916
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x4c9916
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.004c9e10
mov eax, dword [eax + 8]
add esi, 4
push esi
mov eax, dword [eax]
mov ecx, eax
call fcn.004c9f30
test al, al
je 0x4c9916
mov esi, dword [0x520530]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.004c9c40
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.004c9c80
mov esi, dword [eax]
mov ecx, edi
call fcn.004c9cd0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x10]
push eax
push edx
call fcn.0048c5a0
test esi, esi
je 0x4c9901
push 1
mov ecx, esi
call fcn.004ca270
mov ecx, dword [0x520530]
mov al, byte [ecx + 0x90]
test al, al
jne 0x4c9916
call fcn.004d8700
mov esi, dword [esp + 0xb8]
push 4
mov cx, word [esi + 4]
push ecx
mov ecx, dword [ebx + 4]
call fcn.004d5af0
mov dx, word [esi + 6]
mov ecx, dword [ebx + 4]
push 6
push edx
call fcn.004d5af0
mov ecx, dword [ebx + 4]
call fcn.004d5800
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.00414090
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.004144a0
test al, al
je 0x4c99d4
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.00414480
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 0x4c9a3e
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.004144a0
test al, al
je 0x4c9a31
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.00414480
lea ecx, [esp + 0x1c]
push ecx
call fcn.004cc830
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 0x4c9a5e
cmp dl, cl
jne 0x4c9a5e
or esi, 0xffffffff
jmp 0x4c9a77
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 [0x520530]
cmp ecx, ebx
je 0x4c9bf4
mov edx, dword [ecx]
push esi
call dword [edx + 0xc]
mov ecx, dword [0x520530]
cmp byte [ecx + 0x90], 1
jne 0x4c9bf4
cmp eax, 1
je 0x4c9ad9
cmp eax, 3
jne 0x4c9bec
cmp esi, 0xffffffff
je 0x4c9bf4
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], dl
call fcn.00414090
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 [0x520530]
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.00413e90
add esi, 0x10
lea ecx, [esp + 0x3c]
push esi
call fcn.004c9030
sub esp, 0x10
lea ecx, [esp + 0x3c]
mov eax, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.004ca020
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.004c93b0
xor esi, esi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
cmp ecx, ebx
jne 0x4c9b5f
xor eax, eax
jmp 0x4c9b66
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x4c9b88
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x5c], esp
push esi
push ecx
lea ecx, [esp + 0x44]
call fcn.004ca150
mov ecx, edi
call fcn.004c9570
inc esi
jmp 0x4c9b4f
push edx
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0xb8], 2
call fcn.004776e0
mov edx, dword [esp + 0x40]
push edx
call fcn.004de1a0
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.00414090
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0xb4], 0xffffffff
call fcn.00414090
mov ecx, dword [0x520530]
mov ebx, dword [esp + 0x18]
jmp 0x4c9864
cmp eax, 2
jne 0x4c9bf4
or esi, 0xffffffff
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x4c9c18
mov al, byte [ecx - 1]
test al, al
je 0x4c9c0e
cmp al, 0xff
je 0x4c9c0e
dec al
mov byte [ecx - 1], al
jmp 0x4c9c18
dec ecx
push ecx
call fcn.004de1a0
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