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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44847e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x45b4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
call fcn.00402df0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x414537
push 0x80004005
call fcn.00402ba0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040afd0
push str.TrainerSettings.ini
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401c00
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 0x4145bf
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4145b0
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4145b0
call fcn.004021d0
mov dword [ebp - 0x24], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4145a8
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 0x4145bf
push dword [edx - 0xc]
lea ecx, [ebp - 0x20]
push edx
call fcn.004097f0
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 1
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 0x4145df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004021d0
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 0x414618
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x24], 0
jne 0x414629
push dword [ebp - 0x18]
call fcn.0042e946
add esp, 4
push 4
call fcn.0042d5c9
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x414648
push esi
mov ecx, eax
call fcn.00413800
jmp 0x41464a
xor eax, eax
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
push 8
mov dword [edi + 0x70], eax
call fcn.0042d5c9
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x414676
push ecx
push dword [edi + 0x70]
mov ecx, eax
call fcn.00413ab0
jmp 0x414678
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.004021d0
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 0x4146ba
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x24], 0
jne 0x41484c
push 0x4516a2
push 2
call fcn.0042e977
add esp, 8
lea ecx, [ebp - 0x1c]
push eax
call fcn.00403d40
mov byte [ebp - 4], 5
call fcn.00402df0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4146fc
push 0x80004005
call fcn.00402ba0
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 - 0x1c]
cmp dword [eax - 0xc], 0
jl 0x414793
push str.Chinese
push eax
call fcn.0042de8b
add esp, 8
test eax, eax
je 0x414793
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x414793
cmp dword [ecx - 0xc], 0
jge 0x41473f
or eax, 0xffffffff
jmp 0x41475b
push str.Traditional
push ecx
call fcn.0042de8b
add esp, 8
test eax, eax
jne 0x414756
or eax, 0xffffffff
jmp 0x41475b
sub eax, dword [ebp - 0x1c]
sar eax, 1
cmp eax, 0xffffffff
mov edx, str.Chinese_Traditional
mov ecx, str.Chinese_Simplified
cmove edx, ecx
test edx, edx
jne 0x414775
xor ecx, ecx
push ecx
push edx
jmp 0x41479a
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414780
sub ecx, esi
sar ecx, 1
push ecx
push edx
jmp 0x41479a
push 7
push str.English
lea ecx, [ebp - 0x24]
call fcn.004097f0
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 0x414829
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 - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414849
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.00413b40
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 0x414877
push 0x80070057
call fcn.00402ba0
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x414893
push esi
mov ecx, edx
call fcn.00402b10
mov edx, dword [ebp - 0x24]
lea eax, [esi + 1]
push eax
push dword [edx]
call fcn.0042e340
mov ecx, dword [ebp - 0x24]
add esp, 8
mov eax, dword [ecx]
cmp esi, dword [eax - 8]
jg 0x41486d
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.004021d0
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 0x4148e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
jl 0x414911
push str.SIMPLIFIED
push esi
call fcn.0042de8b
add esp, 8
test eax, eax
je 0x41490b
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x41490b
xor ecx, ecx
jmp 0x41493a
cmp dword [esi - 0xc], 0
jge 0x414916
or eax, 0xffffffff
jmp 0x414931
push str.TRADITIONAL
push esi
call fcn.0042de8b
add esp, 8
test eax, eax
jne 0x41492d
or eax, 0xffffffff
jmp 0x414931
sub eax, esi
sar eax, 1
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
inc ecx
push ecx
mov ecx, edi
call fcn.00415610
mov ecx, dword [edi + 0x74]
push 1
push str.ShowAVHint
call fcn.00413b70
test eax, eax
je 0x414b4f
push 0x4516a0
lea ecx, [ebp - 0x1c]
call fcn.00404820
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xa
push str.360Tray.exe
call fcn.00404820
mov ecx, 1
call fcn.00413050
add esp, 4
test eax, eax
je 0x414997
push 0xb
push str.360Tray.exe
lea ecx, [ebp - 0x1c]
call fcn.004097f0
push ecx
mov ecx, esp
push str.360Safe.exe
call fcn.00404820
mov ecx, 1
call fcn.00413050
add esp, 4
test eax, eax
je 0x4149c4
push 0xb
push str.360Safe.exe
lea ecx, [ebp - 0x1c]
call fcn.004097f0
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
je 0x414b32
lea eax, [ebp - 0x1c]
mov edx, 0x453fa0
push eax
lea ecx, [ebp - 0x38]
call fcn.00403de0
add esp, 4
push 0x453f8c
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x34]
call fcn.00401c00
add esp, 4
push 0x453f40
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x30]
call fcn.00401c00
add esp, 4
push 0x453ef8
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2c]
call fcn.00401c00
add esp, 4
push 0x453eb0
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x24]
call fcn.00401c00
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 0x414a71
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 0x414a91
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 0x414ab1
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 0x414ad1
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 0x414af1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x414b2f
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 - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414d36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x414d36
mov eax, dword [ebp - 0x1c]
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 0x414b4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [edi + 0x80]
push ecx
mov dword [ebp - 0x38], ecx
mov edi, esp
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.004021d0
add eax, 0x10
mov ecx, 1
mov dword [edi], eax
call fcn.00413050
mov edx, dword [ebp - 0x38]
add esp, 4
mov edi, dword [edx + 8]
cmp edi, eax
je 0x414b8b
xor ecx, ecx
test edi, edi
cmove ecx, eax
mov dword [edx + 8], ecx
xor eax, eax
cmp dword [edx + 8], eax
setne al
mov dword [edx + 0x20], eax
test eax, eax
je 0x414bb0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x8c], 0x10000
jae 0x414bb0
mov ecx, edx
call fcn.00412fa0
push 0x453fc0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x38]
call fcn.00401c00
add esp, 4
mov edi, dword [ebp - 0x14]
add edi, 0x17c
mov byte [ebp - 4], 0xf
push eax
mov ecx, edi
mov dword [ebp - 0x34], edi
call fcn.0040ce40
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 0x414bfb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.004021d0
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 0x414c33
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x38], 0
jne 0x414c50
mov eax, dword [ebp - 0x34]
mov edx, 0x453fe0
mov ecx, 0xa7
push dword [eax]
call fcn.0040ad80
add esp, 4
mov edi, dword [ebp - 0x14]
cmp dword [edi + 0xa0], 0
jne 0x414c78
mov ecx, dword [edi + 0x74]
push 1
push str.OnLoadMusic
call fcn.00413b70
test eax, eax
je 0x414c78
push 1
mov ecx, edi
call fcn.00414db0
push 0x4513c4
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x38]
call fcn.00401c00
add esp, 4
mov byte [ebp - 4], 0x10
mov edx, 0x453fe8
push dword [eax]
mov ecx, 0xac
call fcn.0040ad80
mov byte [ebp - 4], 9
add esp, 4
mov edx, dword [ebp - 0x38]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414cc3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x453c4c
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x38]
call fcn.00401c00
add esp, 4
mov byte [ebp - 4], 0x11
mov edx, 0x453fe8
push dword [eax]
mov ecx, 0xad
call fcn.0040ad80
mov byte [ebp - 4], 9
add esp, 4
mov edx, dword [ebp - 0x38]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414d0e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x414d53
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 - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414d73
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 0x414d91
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