Function at 0x5361d0
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x570438
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.005447a0
mov ecx, dword [0x5c6b28]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x536322
mov al, byte [ecx + 0x24]
test al, al
je 0x5362a0
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x536296
lea ecx, [esi + 0x40]
call fcn.005368b0
mov eax, dword [eax]
add esi, 4
push esi
mov ecx, eax
call fcn.00536af0
test al, al
je 0x536290
mov esi, dword [0x5c6b28]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.00536870
lea ebx, [esi + 0x40]
mov ecx, ebx
call fcn.005368b0
mov esi, dword [eax]
mov ecx, ebx
call fcn.00536900
lea ecx, [esi + 0x10]
call fcn.005367e0
test esi, esi
je 0x53627b
mov ecx, esi
call fcn.00536e50
push esi
call fcn.00556360
add esp, 4
mov ecx, dword [0x5c6b28]
mov al, byte [ecx + 0x90]
test al, al
jne 0x536296
call fcn.0054fee0
mov ecx, dword [0x5c6b28]
mov byte [ecx + 0x24], 0
mov ecx, dword [0x5c6b28]
test ecx, ecx
je 0x536322
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x536322
lea ecx, [esi + 0x40]
call fcn.005368b0
mov eax, dword [eax]
add esi, 4
push esi
mov ecx, eax
call fcn.00536af0
test al, al
je 0x536322
mov esi, dword [0x5c6b28]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.00536870
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.005368b0
mov esi, dword [eax]
mov ecx, edi
call fcn.00536900
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x10]
push eax
push edx
call fcn.00536820
test esi, esi
je 0x536309
push 1
mov ecx, esi
call fcn.00536e30
mov ecx, dword [0x5c6b28]
mov al, byte [ecx + 0x90]
test al, al
jne 0x53631e
call fcn.0054fee0
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.00544a00
mov cx, word [esi + 6]
push 6
push ecx
mov ecx, dword [edi + 4]
call fcn.00544a00
mov ecx, dword [edi + 4]
call fcn.00544710
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.00404bb0
mov edi, 0x5c65b8
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.00404d70
test al, al
je 0x5363b4
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov eax, ecx
mov esi, 0x5c65b8
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.00404d50
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 0x536422
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.00404d70
test al, al
je 0x536415
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.00404d50
lea eax, [esp + 0x24]
push eax
call fcn.00548050
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 0x536442
cmp dl, cl
jne 0x536442
or esi, 0xffffffff
jmp 0x53645b
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 [0x5c6b28]
cmp ecx, edi
je 0x5365ca
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov ecx, dword [0x5c6b28]
cmp byte [ecx + 0x90], 1
jne 0x5365ca
cmp eax, 1
je 0x5364bb
cmp eax, 3
jne 0x5365c2
cmp esi, 0xffffffff
je 0x5365ca
mov dl, byte [esp + 0x64]
push edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], dl
call fcn.00404bb0
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 [0x5c6b28]
mov edx, dword [0x57217c]
push edx
push edi
lea esi, [ecx + 4]
lea ecx, [esp + 0x3c]
push esi
mov byte [esp + 0x68], 1
call fcn.004049b0
add esi, 0x10
lea ecx, [esp + 0x44]
push esi
call fcn.00536610
sub esp, 0x10
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00536be0
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.00535dd0
xor esi, esi
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
cmp ecx, edi
jne 0x53653e
xor eax, eax
jmp 0x536545
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x536567
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
push ecx
lea ecx, [esp + 0x4c]
call fcn.00536d10
mov ecx, ebx
call fcn.00535fb0
inc esi
jmp 0x53652e
push edx
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64], 2
call fcn.00404c00
mov edx, dword [esp + 0x48]
push edx
call fcn.00556360
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.00404bb0
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], 0xffffffff
call fcn.00404bb0
mov ecx, dword [0x5c6b28]
mov edi, dword [esp + 0x10]
jmp 0x5362a0
cmp eax, 2
jne 0x5365ca
or esi, 0xffffffff
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x5365ee
mov al, byte [ecx - 1]
test al, al
je 0x5365e4
cmp al, 0xff
je 0x5365e4
dec al
mov byte [ecx - 1], al
jmp 0x5365ee
dec ecx
push ecx
call fcn.00556360
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