Function at 0x458450
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x47b451
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.0045d090
mov ecx, dword [0x498c88]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4585d6
mov al, byte [ecx + 0x24]
test al, al
je 0x458524
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x45851a
lea ecx, [esi + 0x40]
call fcn.00458940
mov eax, dword [eax]
add esi, 4
push esi
mov ecx, eax
call fcn.00458bf0
test al, al
je 0x458514
mov esi, dword [0x498c88]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.00458900
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.00458940
mov esi, dword [eax]
mov ecx, edi
call fcn.00458990
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x10]
push eax
push edx
call fcn.0040fe50
test esi, esi
je 0x4584ff
push 1
mov ecx, esi
call fcn.00458f30
mov ecx, dword [0x498c88]
mov al, byte [ecx + 0x90]
test al, al
jne 0x45851a
call fcn.00466a30
mov ecx, dword [0x498c88]
mov byte [ecx + 0x24], 0
mov ecx, dword [0x498c88]
test ecx, ecx
je 0x4585d6
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x4585d6
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.00458ad0
mov eax, dword [eax + 8]
add esi, 4
push esi
mov eax, dword [eax]
mov ecx, eax
call fcn.00458bf0
test al, al
je 0x4585d6
mov esi, dword [0x498c88]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.00458900
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.00458940
mov esi, dword [eax]
mov ecx, edi
call fcn.00458990
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x10]
push eax
push edx
call fcn.0040fe50
test esi, esi
je 0x4585c1
push 1
mov ecx, esi
call fcn.00458f30
mov ecx, dword [0x498c88]
mov al, byte [ecx + 0x90]
test al, al
jne 0x4585d6
call fcn.00466a30
mov esi, dword [esp + 0xb8]
push 4
mov cx, word [esi + 4]
push ecx
mov ecx, dword [ebx + 4]
call fcn.0045d2f0
mov dx, word [esi + 6]
mov ecx, dword [ebx + 4]
push 6
push edx
call fcn.0045d2f0
mov ecx, dword [ebx + 4]
call fcn.0045d000
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.00401b10
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.00401c20
test al, al
je 0x458694
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.00404f70
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 0x4586fe
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.00401c20
test al, al
je 0x4586f1
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.00404f70
lea ecx, [esp + 0x1c]
push ecx
call fcn.0045b9a0
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 0x45871e
cmp dl, cl
jne 0x45871e
or esi, 0xffffffff
jmp 0x458737
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 [0x498c88]
cmp ecx, ebx
je 0x4588b4
mov edx, dword [ecx]
push esi
call dword [edx + 0xc]
mov ecx, dword [0x498c88]
cmp byte [ecx + 0x90], 1
jne 0x4588b4
cmp eax, 1
je 0x458799
cmp eax, 3
jne 0x4588ac
cmp esi, 0xffffffff
je 0x4588b4
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], dl
call fcn.00401b10
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 [0x498c88]
mov edx, dword [0x47d170]
push edx
push ebx
lea esi, [ecx + 4]
lea ecx, [esp + 0x34]
push esi
mov byte [esp + 0xbc], 1
call fcn.00404b80
add esi, 0x10
lea ecx, [esp + 0x3c]
push esi
call fcn.0044e330
sub esp, 0x10
lea ecx, [esp + 0x3c]
mov eax, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.00458ce0
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.00458050
xor esi, esi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
cmp ecx, ebx
jne 0x45881f
xor eax, eax
jmp 0x458826
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x458848
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x5c], esp
push esi
push ecx
lea ecx, [esp + 0x44]
call fcn.00458e10
mov ecx, edi
call fcn.00458230
inc esi
jmp 0x45880f
push edx
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0xb8], 2
call fcn.0040fea0
mov edx, dword [esp + 0x40]
push edx
call fcn.00469f00
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.00401b10
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0xb4], 0xffffffff
call fcn.00401b10
mov ecx, dword [0x498c88]
mov ebx, dword [esp + 0x18]
jmp 0x458524
cmp eax, 2
jne 0x4588b4
or esi, 0xffffffff
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x4588d8
mov al, byte [ecx - 1]
test al, al
je 0x4588ce
cmp al, 0xff
je 0x4588ce
dec al
mov byte [ecx - 1], al
jmp 0x4588d8
dec ecx
push ecx
call fcn.00469f00
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