Function at 0x419cb0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46ea60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [esp + 0x48]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor ebx, ebx
test eax, eax
mov dword [esp + 8], eax
jle 0x419f58
push ebp
push esi
push edi
jmp 0x419cf0
mov edx, dword [esp + 0x58]
mov esi, dword [sym.imp.USER32.dll_GetMenuItemInfoA]
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
push edx
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x2c], 0x46
call esi
test eax, eax
je 0x419f48
mov eax, dword [esp + 0x40]
inc eax
push eax
call fcn.0045be25
mov ecx, dword [esp + 0x44]
add esp, 4
inc ecx
mov edx, ecx
mov ebp, eax
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x18]
push eax
push 1
push ebx
inc edx
push ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edx
call esi
test eax, eax
je 0x419f3f
mov edi, 0x477b60
mov esi, ebp
mov ecx, 0xa
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x419da3
mov eax, dword [0x49be08]
test eax, eax
jne 0x419f48
mov eax, dword [esp + 0x2c]
push eax
call fcn.00419400
jmp 0x419f45
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x419db4
push eax
call fcn.00419cb0
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x419f3f
mov eax, dword [0x49be00]
test eax, eax
je 0x419e55
call fcn.0045bebc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x50], 0
je 0x419e08
mov eax, dword [0x49be04]
inc eax
push eax
mov dword [0x49be04], eax
push 0x477b5c
lea eax, [esp + 0x18]
push eax
jmp 0x419e17
mov ecx, dword [esp + 0x28]
push ecx
push 0x472b7c
lea edx, [esp + 0x18]
push edx
call fcn.00401ab0
mov eax, dword [str.D:menu.ini]
mov esi, dword [esp + 0x1c]
mov ecx, dword [str.MainMenu]
add esp, 0xc
push eax
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
lea eax, [esi - 0x10]
mov dword [esp + 0x50], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x419f35
call fcn.0045bebc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x50], 1
je 0x419e90
mov eax, dword [0x49be04]
inc eax
push eax
mov dword [0x49be04], eax
push 0x477b5c
lea eax, [esp + 0x18]
push eax
jmp 0x419e9f
mov ecx, dword [esp + 0x28]
push ecx
push 0x472b7c
lea edx, [esp + 0x18]
push edx
call fcn.00401ab0
mov eax, dword [str.D:menu.ini]
mov esi, dword [esp + 0x1c]
mov ecx, dword [str.MainMenu]
add esp, 0xc
push eax
push 0x104
push 0x49be38
push 0x473cc0
push esi
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, 0x49be38
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419ed6
sub eax, edx
mov dword [esp + 0x10], eax
je 0x419f1d
lea edx, [esp + 0x18]
push edx
xor eax, eax
push 1
mov ecx, 0xc
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x60]
push ebx
push eax
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x4c], 0x49be38
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
lea eax, [esi - 0x10]
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419f3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebp
call fcn.0045be20
add esp, 4
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x419cf0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x3c]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret