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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599817
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x6102d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0056f980
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0056f980
add esp, 0x18
mov dword [ebp - 0x838], 0
xor eax, eax
mov dword [ebp - 0x834], 7
lea ecx, [ebp - 0x848]
mov word [ebp - 0x848], ax
push eax
push 0x5a178c
call fcn.00411630
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x5a178c
lea ecx, [ebp - 0x890]
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
call fcn.00411630
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x5a178c
lea ecx, [ebp - 0x8a8]
mov dword [ebp - 0x898], 0
mov dword [ebp - 0x894], 7
mov word [ebp - 0x8a8], ax
call fcn.00411630
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x5a178c
lea ecx, [ebp - 0x878]
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 7
mov word [ebp - 0x878], ax
call fcn.00411630
push 0
push 0x2b
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
push 0
call fcn.0044b02c
lea edi, [ebp - 0x420]
add esp, 0x10
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x414c32
mov eax, dword [0x5a1724]
lea edx, [ebp - 0x420]
mov dword [edi], eax
add edx, 0xfffffffe
nop
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x414c50
mov ebx, dword [0x5a1790]
lea edi, [ebp - 0x420]
mov ecx, dword [0x5a1794]
add edi, 0xfffffffe
mov dword [edx], ebx
mov dword [edx + 4], ecx
mov ecx, dword [0x5a1798]
mov dword [edx + 8], ecx
mov ecx, dword [0x5a179c]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x5a17a0]
mov dword [edx + 0x10], ecx
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x414c91
lea ecx, [ebp - 0x420]
mov dword [edi], eax
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x414cb0
mov eax, dword [0x5a1794]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov eax, dword [0x5a1798]
mov dword [ecx + 8], eax
mov eax, dword [0x5a179c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x5a17a0]
mov dword [ecx + 0x10], eax
lea ecx, [ebp - 0x420]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x414cf0
mov eax, dword [str..ini]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ecx], eax
mov eax, dword [0x5a17a8]
mov dword [ecx + 4], eax
mov ax, word [0x5a17ac]
mov word [ecx + 8], ax
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5a178c
push str.UsrPath
push str.MainConfig
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414d50
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x414ddd
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x414ddd
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414d80
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x848]
call fcn.00411630
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414db0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x14]
call fcn.00411630
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x415019
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0056f980
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0056f980
add esp, 0x18
cmp dword [esi + 0x6c], 0
jne 0x414e3a
push 0x104
lea eax, [ebp - 0x628]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push 0x5c
push eax
call fcn.0056fada
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x414e60
cmp dword [esi + 0x70], 8
lea ecx, [esi + 0x5c]
jb 0x414e45
mov ecx, dword [ecx]
lea edx, [ebp - 0x628]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x414e50
push str.ZHGameBox.cfg
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push 0x5a1eb8
push eax
call fcn.00411a40
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5a178c
push str.UsrPath
push str.MainAppInfo
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414eb0
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x414f3d
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x414f3d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414ee0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x890]
call fcn.00411630
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414f10
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x14]
call fcn.00411630
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x415019
cmp dword [esi + 0x88], 8
lea eax, [esi + 0x74]
jb 0x414f4b
mov eax, dword [eax]
push str.ZHGameBox.cfg
push eax
lea eax, [ebp - 0x830]
push 0x5a1eb8
push eax
call fcn.00411a40
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5a178c
push str.UsrPath
push str.MainAppInfo
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414f92
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x41502a
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x41502a
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414fc0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00411630
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414ff0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x14]
call fcn.00411630
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
jne 0x41502a
mov ebx, dword [ebp - 0x848]
mov esi, dword [ebp - 0x878]
jmp 0x415242
push 0x5a178c
push str.UsrPath
push str.MainAppInfo
lea eax, [ebp - 0x860]
push 0x5a1790
push eax
call fcn.0044bbf6
add esp, 0x14
mov edx, dword [ebp - 0x84c]
lea ecx, [ebp - 0x860]
mov edi, dword [ebp - 0x860]
cmp edx, 8
mov byte [ebp - 4], 4
cmovae ecx, edi
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415070
sub ecx, ebx
sar ecx, 1
test ecx, ecx
jle 0x4150f5
cmp edx, 8
lea eax, [ebp - 0x860]
cmovae eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4150f5
cmp dword [ebp - 0x84c], 8
lea eax, [ebp - 0x860]
push dword [ebp - 0x850]
cmovae eax, dword [ebp - 0x860]
lea ecx, [ebp - 0x878]
push eax
call fcn.00411630
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x860]
cmp ecx, eax
je 0x4150e7
cmp dword [ebp - 0x84c], 8
push dword [ebp - 0x850]
cmovae eax, dword [ebp - 0x860]
push eax
call fcn.00411630
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x41522b
cmp byte [esi + 8], 0
je 0x41522b
cmp byte [esi + 7], 0
je 0x41522b
cmp dword [ebp - 0x87c], 8
lea ecx, [ebp - 0x890]
mov ebx, dword [ebp - 0x848]
lea eax, [ebp - 0x848]
cmovae ecx, dword [ebp - 0x890]
cmp dword [ebp - 0x834], 8
mov edx, dword [ebp - 0x838]
cmovae eax, ebx
cmp edx, dword [ebp - 0x880]
jne 0x415169
mov edi, edx
test edi, edi
je 0x41516d
sub eax, ecx
mov dword [ebp - 0x8ac], eax
nop
mov ax, word [ecx + eax]
cmp ax, word [ecx]
jne 0x415169
mov eax, dword [ebp - 0x8ac]
add ecx, 2
sub edi, 1
jne 0x415150
jmp 0x41516d
mov byte [esi + 9], 1
cmp dword [ebp - 0x894], 8
lea ecx, [ebp - 0x8a8]
lea eax, [ebp - 0x848]
cmovae ecx, dword [ebp - 0x8a8]
cmp dword [ebp - 0x834], 8
cmovae eax, ebx
cmp edx, dword [ebp - 0x898]
jne 0x4151c0
mov edi, edx
test edi, edi
je 0x4151c4
sub eax, ecx
mov dword [ebp - 0x8ac], eax
mov ax, word [ecx + eax]
cmp ax, word [ecx]
jne 0x4151c0
mov eax, dword [ebp - 0x8ac]
add ecx, 2
sub edi, 1
jne 0x4151a7
jmp 0x4151c4
mov byte [esi + 9], 1
cmp dword [ebp - 0x864], 8
lea ecx, [ebp - 0x878]
mov esi, dword [ebp - 0x878]
lea edi, [ebp - 0x848]
cmovae ecx, esi
cmp dword [ebp - 0x834], 8
cmovae edi, ebx
cmp edx, dword [ebp - 0x868]
jne 0x415213
test edx, edx
je 0x415237
sub edi, ecx
nop dword [eax + eax]
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x415213
add ecx, 2
sub edx, 1
jne 0x415200
jmp 0x415237
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, ebx
mov dword [eax], 1
jmp 0x415231
mov esi, dword [ebp - 0x878]
mov ebx, dword [ebp - 0x848]
lea ecx, [ebp - 0x860]
call fcn.0040a530
mov eax, dword [ebp - 0x864]
mov edi, dword [ebp - 0x890]
cmp eax, 8
jb 0x415282
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x415278
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41534a
push ecx
push esi
call fcn.0045ec62
add esp, 8
mov eax, dword [ebp - 0x894]
cmp eax, 8
jb 0x4152c2
mov edx, dword [ebp - 0x8a8]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4152b8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41534f
push ecx
push edx
call fcn.0045ec62
add esp, 8
mov eax, dword [ebp - 0x87c]
cmp eax, 8
jb 0x4152f8
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4152ee
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415354
push ecx
push edi
call fcn.0045ec62
add esp, 8
mov eax, dword [ebp - 0x834]
cmp eax, 8
jb 0x41532e
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x415324
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415359
push ecx
push ebx
call fcn.0045ec62
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ef18
mov esp, ebp
pop ebp
ret
call fcn.00572b79
call fcn.00572b79
call fcn.00572b79
call fcn.00572b79
int3