Function at 0x404223
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x4ec
mov eax, 0x45a9b6
call fcn.0043f597
lea eax, [ebp - 0x450]
push eax
call fcn.00407512
lea eax, [ebp - 0x328]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00407002
mov byte [ebp - 4], 1
mov eax, dword [0x47d1c4]
add eax, 0x2b0
push eax
lea ecx, [ebp - 0x12c]
call fcn.00414d81
mov edi, 0x468e58
lea eax, [ebp - 0x3d0]
push edi
push eax
mov byte [ebp - 4], 2
call fcn.0040b971
cmp byte [ebp + 8], 0
jne 0x4042a6
push 0x47b3d8
mov byte [ebp - 4], 3
call fcn.0040bb61
lea edx, [ebp - 0x164]
mov ecx, eax
call fcn.0040ba10
mov byte [ebp - 4], 4
jmp 0x4042c5
push 0x47b3dc
mov byte [ebp - 4], 5
call fcn.0040bb61
lea edx, [ebp - 0x164]
mov ecx, eax
call fcn.0040ba10
mov byte [ebp - 4], 6
push 0xffffffffffffffff
push esi
lea esi, [ebp - 0x12c]
call fcn.00408eb7
push 0
push 1
lea ecx, [ebp - 0x164]
call fcn.00414e73
lea eax, [ebp - 0x3d0]
push eax
mov byte [ebp - 4], 2
call fcn.00403160
cmp dword [ebp - 0x114], 0x10
mov eax, dword [ebp - 0x128]
jae 0x404307
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40438b
cmp byte [ebp + 8], al
jne 0x40438b
mov eax, dword [0x47d1c4]
push 0xffffffffffffffff
add eax, 0x2b0
push 0
push eax
lea ecx, [ebp - 0x12c]
call fcn.00414cef
push edi
lea eax, [ebp - 0x3d0]
push eax
call fcn.0040b971
push 0x47b3dc
mov byte [ebp - 4], 7
call fcn.0040bb61
lea edx, [ebp - 0x164]
mov ecx, eax
call fcn.0040ba10
push 0xffffffffffffffff
push 0
lea esi, [ebp - 0x12c]
mov byte [ebp - 4], 8
call fcn.00408eb7
push 0
push 1
lea ecx, [ebp - 0x164]
call fcn.00414e73
lea eax, [ebp - 0x3d0]
push eax
mov byte [ebp - 4], 2
call fcn.00403160
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x298], eax
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x294], eax
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x290], eax
mov eax, dword [ebx + 0x98]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebx + 0xa8]
mov dword [ebp - 0x288], eax
mov eax, dword [ebx + 0xb8]
mov dword [ebp - 0x284], eax
mov eax, dword [ebx + 0xc8]
mov dword [ebp - 0x280], eax
mov eax, dword [ebx + 0xd8]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebx + 0xe8]
mov dword [ebp - 0x278], eax
mov eax, dword [ebx + 0xf8]
mov dword [ebp - 0x274], eax
mov eax, dword [ebx + 0x108]
mov dword [ebp - 0x270], eax
mov eax, dword [ebx + 0x118]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebx + 0x128]
mov dword [ebp - 0x268], eax
mov eax, dword [ebx + 0x138]
mov dword [ebp - 0x264], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x260], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0x258], eax
mov eax, dword [ebx + 0x7c]
mov dword [ebp - 0x254], eax
mov eax, dword [ebx + 0x8c]
mov dword [ebp - 0x250], eax
mov eax, dword [ebx + 0x9c]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebx + 0xac]
mov dword [ebp - 0x248], eax
mov eax, dword [ebx + 0xbc]
mov dword [ebp - 0x244], eax
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0x240], eax
mov eax, dword [ebx + 0xdc]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebx + 0xec]
mov dword [ebp - 0x238], eax
mov eax, dword [ebx + 0xfc]
mov dword [ebp - 0x234], eax
mov eax, dword [ebx + 0x10c]
mov dword [ebp - 0x230], eax
mov eax, dword [ebx + 0x11c]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx + 0x12c]
mov dword [ebp - 0x228], eax
mov eax, dword [ebx + 0x13c]
mov dword [ebp - 0x224], eax
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x220], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x218], eax
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x214], eax
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0x210], eax
mov eax, dword [ebx + 0xa0]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebx + 0xb0]
mov dword [ebp - 0x208], eax
mov eax, dword [ebx + 0xc0]
mov dword [ebp - 0x204], eax
mov eax, dword [ebx + 0xd0]
mov dword [ebp - 0x200], eax
mov eax, dword [ebx + 0xe0]
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebx + 0xf0]
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebx + 0x100]
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebx + 0x110]
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebx + 0x120]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebx + 0x130]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebx + 0x140]
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebx + 0x94]
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebx + 0xa4]
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebx + 0xb4]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebx + 0xc4]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebx + 0xd4]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebx + 0xe4]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebx + 0xf4]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebx + 0x104]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebx + 0x114]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebx + 0x124]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebx + 0x134]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebx + 0x144]
shl esi, 6
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x188], 0x47b3f0
mov dword [ebp - 0x18c], esi
lea eax, [ebp + esi - 0x2a0]
mov dword [ebp - 0x1a0], eax
mov eax, dword [eax]
mov dword [ebp - 0x198], eax
test eax, eax
je 0x404a21
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x19c], eax
push str.KeyConfig_d
lea eax, [ebp - 0x3d0]
push eax
call fcn.0040b971
lea ecx, [ebp - 0x19c]
push ecx
mov byte [ebp - 4], 9
call fcn.0040bbc1
lea edx, [ebp - 0x164]
mov ecx, eax
call fcn.0040ba10
lea eax, [ebp - 0x3d0]
push eax
mov byte [ebp - 4], 0xb
call fcn.00403160
cmp dword [ebp - 0x114], 0x10
mov ecx, dword [ebp - 0x128]
jae 0x4046f1
lea ecx, [ebp - 0x128]
cmp dword [ebp - 0x14c], 0x10
mov eax, dword [ebp - 0x160]
jae 0x404706
lea eax, [ebp - 0x160]
push ecx
push 0x100
lea ecx, [ebp - 0x110]
push ecx
push dword [esi + 0x47b430]
mov ecx, dword [ebp - 0x188]
push dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x404740
push dword [esi + 0x47b430]
lea eax, [ebp - 0x110]
push eax
call fcn.0043cf80
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x148]
call fcn.00414a2c
lea eax, [ebp - 0x148]
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 0xc
call fcn.00407e60
push 0
push 1
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0xb
call fcn.00414e73
mov eax, dword [ebp - 0x328]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x328]
mov ecx, dword [eax + 0x28]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffc
push 0
add ecx, 4
push eax
call fcn.0041262b
mov eax, dword [ebp - 0x328]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x328]
mov ecx, dword [eax + 0x10]
and ecx, 0xfffff3ff
or ecx, 0x200
mov dword [eax + 0x10], ecx
lea eax, [ebp - 0x190]
push eax
mov edi, 0x412511
push edi
lea eax, [ebp - 0x181]
push eax
push ecx
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.00406b75
pop ecx
push eax
call fcn.0040bcad
pop ecx
pop ecx
mov esi, eax
call fcn.00406b5b
push eax
call fcn.00406b75
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 8], 6
je 0x4048e3
mov eax, dword [ebp - 0x18c]
push dword [eax + 0x47b430]
lea eax, [ebp - 0x110]
push eax
call fcn.0043cf80
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x148]
call fcn.00414a2c
lea eax, [ebp - 0x148]
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 0xd
call fcn.00407e60
push 0
push 1
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0xb
call fcn.00414e73
mov eax, dword [ebp - 0x328]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x328]
mov ecx, dword [eax + 0x28]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffc
push 0
add ecx, 4
push eax
call fcn.0041262b
mov eax, dword [ebp - 0x328]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x328]
mov ecx, dword [eax + 0x10]
and ecx, 0xfffff3ff
or ecx, 0x200
mov dword [eax + 0x10], ecx
lea eax, [ebp - 0x190]
push eax
push edi
lea eax, [ebp - 0x181]
push eax
push ecx
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.00406b75
pop ecx
push eax
call fcn.0040bcad
pop ecx
pop ecx
mov esi, eax
call fcn.00406b5b
push eax
call fcn.00406b75
push dword [ebp - 0x1a0]
lea edi, [ebx + 0x160]
call fcn.00406d65
lea ecx, [ebp - 0x110]
push ecx
mov ecx, eax
call fcn.00414a0f
xor edi, edi
cmp dword [ebp - 0x194], edi
jne 0x404975
push str.Key:
lea ecx, [ebp - 0x148]
call fcn.00414a2c
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x190]
cmp eax, 0xff
ja 0x404945
imul eax, eax, 0x1c
push 0xffffffffffffffff
lea eax, [eax + ebx + 0x2f8]
push edi
lea esi, [ebp - 0x148]
call fcn.00408eb7
cmp dword [ebp - 0x130], 0x10
mov eax, dword [ebp - 0x144]
jae 0x40495a
lea eax, [ebp - 0x144]
push eax
push edi
push 0xc
push dword [ebp - 0x198]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x148]
jmp 0x404a01
push str.Joy_d:
lea eax, [ebp - 0x4f8]
push eax
call fcn.0040b971
lea ecx, [ebp - 0x194]
push ecx
mov byte [ebp - 4], 0xf
call fcn.0040bbc1
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.0040ba10
lea eax, [ebp - 0x4f8]
push eax
mov byte [ebp - 4], 0x11
call fcn.00403160
mov eax, dword [ebp - 0x190]
cmp eax, 0x1f
ja 0x4049d6
imul eax, eax, 0x1c
push 0xffffffffffffffff
lea eax, [eax + ebx + 0x1ef8]
push edi
lea esi, [ebp - 0x180]
call fcn.00408eb7
cmp dword [ebp - 0x168], 0x10
mov eax, dword [ebp - 0x17c]
jae 0x4049eb
lea eax, [ebp - 0x17c]
push eax
push edi
push 0xc
push dword [ebp - 0x198]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x180]
push edi
push 1
call fcn.00414e73
push edi
push 1
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 2
call fcn.00414e73
mov esi, dword [ebp - 0x18c]
add dword [ebp - 0x188], 4
add esi, 4
cmp dword [ebp - 0x188], 0x47b430
mov dword [ebp - 0x18c], esi
jl 0x404677
push 0
push 1
lea ecx, [ebp - 0x12c]
call fcn.00414e73
lea eax, [ebp - 0x328]
mov byte [ebp - 4], 0
call fcn.00403bdf
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x450]
call fcn.00404a76
call fcn.0043f61a
ret 8