Function at 0x4146b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4479ee
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x45a4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
call fcn.00401c40
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4146f7
push 0x80004005
call fcn.004019f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00409f70
push str.TrainerSettings.ini
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004010d0
add esp, 4
mov byte [ebp - 4], 2
lea edi, [esi - 0x10]
mov edx, dword [eax]
or ebx, 0xffffffff
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x41477f
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x414770
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x414770
call fcn.00401240
mov dword [ebp - 0x24], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x414768
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
jmp 0x41477f
push dword [edx - 0xc]
lea ecx, [ebp - 0x20]
push edx
call fcn.004087b0
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41479f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401240
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
add edi, 0xfffffff0
mov dword [ebp - 0x24], ecx
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4147d8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x24], 0
jne 0x4147e9
push dword [ebp - 0x1c]
call fcn.0042e926
add esp, 4
push 4
call fcn.0042d62f
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x414808
push esi
mov ecx, eax
call fcn.00413a00
jmp 0x41480a
xor eax, eax
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
push 8
mov dword [edi + 0x70], eax
call fcn.0042d62f
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x414836
push ecx
push dword [edi + 0x70]
mov ecx, eax
call fcn.00413cb0
jmp 0x414838
xor eax, eax
mov byte [ebp - 4], 1
mov dword [edi + 0x74], eax
lea eax, [esi - 0x10]
mov ecx, eax
mov dword [ebp - 0x3c], eax
call fcn.00401240
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
add esi, 0xfffffff0
mov dword [ebp - 0x24], ecx
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41487a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x24], 0
jne 0x414a0c
push 0x450622
push 2
call fcn.0042e957
add esp, 8
lea ecx, [ebp - 0x18]
push eax
call fcn.00402cf0
mov byte [ebp - 4], 5
call fcn.00401c40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4148bc
push 0x80004005
call fcn.004019f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jl 0x414953
push str.Chinese
push eax
call fcn.0042de6b
add esp, 8
test eax, eax
je 0x414953
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x414953
cmp dword [ecx - 0xc], 0
jge 0x4148ff
or eax, 0xffffffff
jmp 0x41491b
push str.Traditional
push ecx
call fcn.0042de6b
add esp, 8
test eax, eax
jne 0x414916
or eax, 0xffffffff
jmp 0x41491b
sub eax, dword [ebp - 0x18]
sar eax, 1
cmp eax, 0xffffffff
mov edx, str.Chinese_Traditional
mov ecx, str.Chinese_Simplified
cmove edx, ecx
test edx, edx
jne 0x414935
xor ecx, ecx
push ecx
push edx
jmp 0x41495a
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414940
sub ecx, esi
sar ecx, 1
push ecx
push edx
jmp 0x41495a
push 7
push str.English
lea ecx, [ebp - 0x24]
call fcn.004087b0
mov eax, dword [edi + 0x74]
mov esi, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push dword [eax]
push esi
push str.Language
push ecx
call edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x74]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push dword [eax]
push str.True
push str.ShowAVHint
push ecx
call edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x74]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push dword [eax]
push str.True
push str.OnLoadMusic
push ecx
call edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x74]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push dword [eax]
push str.False
push str.IgnoreGameVersion
push ecx
call edi
add esi, 0xfffffff0
mov byte [ebp - 4], 5
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4149e9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414a09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi + 0x74]
lea eax, [ebp - 0x28]
sub esp, 8
push eax
call fcn.00413d40
mov edx, eax
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 7
mov eax, dword [edx]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x414a37
push 0x80070057
call fcn.004019f0
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x414a53
push esi
mov ecx, edx
call fcn.00401960
mov edx, dword [ebp - 0x24]
lea eax, [esi + 1]
push eax
push dword [edx]
call fcn.0042e320
mov ecx, dword [ebp - 0x24]
add esp, 8
mov eax, dword [ecx]
cmp esi, dword [eax - 8]
jg 0x414a2d
mov dword [eax - 0xc], esi
xor edx, edx
mov eax, dword [ecx]
mov word [eax + esi*2], dx
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00401240
lea esi, [eax + 0x10]
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 9
mov ecx, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414aa6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
jl 0x414ad1
push str.SIMPLIFIED
push esi
call fcn.0042de6b
add esp, 8
test eax, eax
je 0x414acb
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x414acb
xor ecx, ecx
jmp 0x414afa
cmp dword [esi - 0xc], 0
jge 0x414ad6
or eax, 0xffffffff
jmp 0x414af1
push str.TRADITIONAL
push esi
call fcn.0042de6b
add esp, 8
test eax, eax
jne 0x414aed
or eax, 0xffffffff
jmp 0x414af1
sub eax, esi
sar eax, 1
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
inc ecx
push ecx
mov ecx, edi
call fcn.004156d0
mov ecx, dword [edi + 0x74]
push 1
push str.ShowAVHint
call fcn.00413d70
test eax, eax
je 0x414d0f
push 0x450620
lea ecx, [ebp - 0x18]
call fcn.004037e0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xa
push str.360Tray.exe
call fcn.004037e0
mov ecx, 1
call fcn.00413430
add esp, 4
test eax, eax
je 0x414b57
push 0xb
push str.360Tray.exe
lea ecx, [ebp - 0x18]
call fcn.004087b0
push ecx
mov ecx, esp
push str.360Safe.exe
call fcn.004037e0
mov ecx, 1
call fcn.00413430
add esp, 4
test eax, eax
je 0x414b84
push 0xb
push str.360Safe.exe
lea ecx, [ebp - 0x18]
call fcn.004087b0
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x414cf2
lea eax, [ebp - 0x18]
mov edx, 0x453020
push eax
lea ecx, [ebp - 0x38]
call fcn.00402d90
add esp, 4
push 0x45300c
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x34]
call fcn.004010d0
add esp, 4
push 0x452fc0
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x30]
call fcn.004010d0
add esp, 4
push 0x452f78
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2c]
call fcn.004010d0
add esp, 4
push 0x452f30
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x24]
call fcn.004010d0
add esp, 4
push 4
push str.Fuck360
push dword [eax]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x24]
cmp eax, 7
mov ecx, ebx
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414c31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov ecx, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414c51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov ecx, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414c71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov ecx, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414c91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov ecx, ebx
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414cb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x414cef
push 0
push 0
push 2
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 9
mov ecx, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414dfa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x414dfa
mov eax, dword [ebp - 0x18]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414d0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [edi + 0x78]
call fcn.0040f4b0
push 0x453040
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x38]
call fcn.004010d0
add esp, 4
add edi, 0x158
mov byte [ebp - 4], 0xf
push eax
mov ecx, edi
mov dword [ebp - 0x34], edi
call fcn.0040bde0
mov byte [ebp - 4], 9
mov ecx, ebx
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414d5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00401240
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
add edi, 0xfffffff0
mov dword [ebp - 0x38], ecx
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414d97
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x38], 0
jne 0x414daa
mov eax, dword [ebp - 0x34]
push dword [eax]
call fcn.00409d40
add esp, 4
mov edi, dword [ebp - 0x14]
cmp dword [edi + 0xa0], 0
jne 0x414dd2
mov ecx, dword [edi + 0x74]
push 1
push str.OnLoadMusic
call fcn.00413d70
test eax, eax
je 0x414dd2
push 1
mov ecx, edi
call fcn.00414e70
push 0
push 0xa
push 0x2710
push dword [edi + 0x2c]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
call edi
mov eax, dword [ebp - 0x14]
push 0
push 0xc8
push 0x2711
push dword [eax + 0x2c]
call edi
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414e17
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414e37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3c]
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x414e55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret