Function at 0x43c5b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x53b0f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push ebp
push esi
push edi
mov edi, dword [esp + 0x1bc]
xor ebp, ebp
mov esi, ecx
cmp edi, ebp
mov dword [esp + 0x28], esi
je 0x43c9c4
cmp word [esi + 0x484], bp
jne 0x43c5fb
cmp dword [esp + 0x1c0], ebp
je 0x43c9c4
mov eax, dword [0x591288]
push ebx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x24]
push 1
push ecx
mov ecx, esi
mov dword [esp + 0x1c0], ebp
call fcn.0042fdd0
push str.language_
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x1c4], 1
call fcn.0050d692
lea ecx, [esp + 0x24]
mov byte [esp + 0x1b8], 3
call fcn.0050d3fd
mov ax, word [esi + 0x484]
mov dword [esp + 0x20], ebp
cmp ax, bp
je 0x43c6d0
movsx eax, ax
dec eax
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esi + 0x428]
call fcn.0041a2f0
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
mov bl, 4
push eax
push ecx
mov byte [esp + 0x1c4], bl
call fcn.0050d62c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1bc], 5
call fcn.0050d536
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b8], bl
call fcn.0050d3fd
mov edx, dword [esp + 0x18]
push str.jcheb.ini
push edx
call fcn.004eea90
add esp, 8
mov byte [esp + 0x1b8], 3
neg eax
sbb eax, eax
lea ecx, [esp + 0x18]
inc eax
mov dword [esp + 0x20], eax
jmp 0x43c702
lea eax, [esp + 0x14]
push str.jceng.ini
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0050d692
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1bc], 6
call fcn.0050d536
mov byte [esp + 0x1b8], 3
lea ecx, [esp + 0x18]
call fcn.0050d3fd
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, dword [0x591288]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ecx
xor esi, esi
cmp eax, ebp
mov byte [esp + 0x1b8], 7
jle 0x43c98d
mov edx, dword [edi + 4]
push esi
push edx
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov ebx, eax
test ebx, ebx
je 0x43c980
cmp ebx, 0xffffffff
je 0x43c888
push ebx
lea eax, [esp + 0x20]
push 0x588388
push eax
call fcn.005060bb
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x60]
push ecx
push 0xff
push edx
push 0x596660
push eax
push str.Menu
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x43c980
mov ecx, dword [edi + 4]
push 0x400
push 0
push 0
push esi
push ecx
call dword [sym.imp.USER32.dll_GetMenuStringA]
test eax, eax
jle 0x43c7d3
lea ebp, [eax + eax + 2]
lea ecx, [esp + 0x10]
push ebp
call fcn.0050d8a4
mov edx, dword [edi + 4]
push 0x400
push ebp
push eax
push esi
push edx
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0050d87c
jmp 0x43c7dc
lea ecx, [esp + 0x10]
call fcn.0050d388
push 9
lea ecx, [esp + 0x14]
call fcn.0050d91e
test eax, eax
jle 0x43c85f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00505bc9
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 8
call fcn.0050d536
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b8], 7
call fcn.0050d3fd
lea eax, [esp + 0x10]
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.0050d706
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 9
call fcn.0050d536
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b8], 7
call fcn.0050d3fd
jmp 0x43c86d
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
push eax
call fcn.0050d586
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push ecx
push ebx
push 0x400
push esi
push edx
call dword [sym.imp.USER32.dll_ModifyMenuA]
jmp 0x43c980
mov eax, dword [edi + 4]
push esi
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.00514735
mov ebp, eax
test ebp, ebp
je 0x43c980
mov ecx, dword [ebp + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemID]
push eax
lea edx, [esp + 0x20]
push 0x58b5d0
push edx
call fcn.005060bb
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x60]
push eax
push 0xff
push ecx
push 0x596660
push edx
push str.Menu
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x43c90f
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
push eax
call fcn.0050d586
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push ecx
push 0xffffffffffffffff
push 0x400
push esi
push edx
call dword [sym.imp.USER32.dll_ModifyMenuA]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x43c96e
mov edx, dword [edi + 4]
lea ecx, [esp + 0x34]
push ecx
push 1
mov ebx, 0x10
lea eax, [esp + 0x168]
push esi
push edx
mov dword [esp + 0x44], 0x2c
mov dword [esp + 0x48], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0x50
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 4]
or ah, 0x60
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push eax
push 1
push esi
push ecx
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov edx, dword [esp + 0x1c4]
mov ecx, dword [esp + 0x2c]
push edx
push ebp
call fcn.0043c5b0
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x43c731
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b8], 3
call fcn.0050d3fd
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b8], 0
call fcn.0050d3fd
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.0050d3fd
pop ebx
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1ac
ret 8