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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f42b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4634b0]
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 ebx, ecx
xor eax, eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], eax
mov word [ebp - 0x70], ax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], eax
call fcn.004136d0
push str.TrainerSettings.ini
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call fcn.0041b460
mov esi, eax
add esp, 4
lea eax, [ebp - 0x70]
cmp eax, esi
je 0x41c98e
cmp dword [ebp - 0x5c], 8
jb 0x41c971
push dword [ebp - 0x70]
call fcn.00434302
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
push esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00409a40
cmp dword [ebp - 0xa4], 8
jb 0x41c9a5
push dword [ebp - 0xb8]
call fcn.00434302
add esp, 4
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0xa0]
push eax
call edi
cmp eax, 0xffffffff
jne 0x41c9e4
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push eax
call fcn.00435cb0
add esp, 4
push 0x18
call fcn.00434316
mov esi, eax
add esp, 4
mov dword [ebp - 0x13c], esi
test esi, esi
je 0x41ca26
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
cmp esi, eax
je 0x41ca28
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0040bcf0
jmp 0x41ca28
xor esi, esi
mov byte [ebp - 4], 1
push 0x1c
mov dword [ebx + 0x6c], esi
call fcn.00434316
mov esi, eax
add esp, 4
mov dword [ebp - 0x140], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x41cac7
push 7
xor eax, eax
mov dword [ebp - 0xbc], 7
push str.Trainer
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.0040c0f0
mov edi, dword [ebx + 0x6c]
lea ecx, [esi + 4]
mov eax, 1
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov word [ecx], ax
lea eax, [ebp - 0xd0]
mov dword [ebp - 4], 6
cmp ecx, eax
je 0x41cabd
push 0xffffffffffffffff
push 0
push eax
call fcn.0040bcf0
mov dword [esi], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x41cac9
xor esi, esi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x138]
mov dword [ebx + 0x70], esi
test al, 1
je 0x41cafd
and eax, 0xfffffffe
cmp dword [ebp - 0xbc], 8
mov dword [ebp - 0x138], eax
jb 0x41cafd
push dword [ebp - 0xd0]
call fcn.00434302
add esp, 4
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call edi
cmp eax, 0xffffffff
jne 0x41cd59
push 0x458f2c
push 2
call fcn.00435ce1
mov edx, eax
mov dword [ebp - 0x44], 0xf
add esp, 8
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp byte [edx], 0
jne 0x41cb40
xor ecx, ecx
jmp 0x41cb4e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41cb45
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0040ba70
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
push 7
push eax
push str.Chinese
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.00404fa0
cmp eax, 0xffffffff
je 0x41cbca
push 0xb
push 0
push str.Traditional
lea ecx, [ebp - 0x58]
call fcn.00404fa0
cmp eax, 0xffffffff
mov edx, str.Chinese_Traditional
mov ecx, str.Chinese_Simplified
cmove edx, ecx
cmp word [edx], 0
jne 0x41cbb2
xor ecx, ecx
push ecx
push edx
jmp 0x41cbd1
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cbb7
sub ecx, esi
sar ecx, 1
push ecx
push edx
jmp 0x41cbd1
push 7
push str.English
lea ecx, [ebp - 0x40]
call fcn.0040c0f0
push 8
xor eax, eax
mov dword [ebp - 0x14], 7
push str.Language
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040c0f0
mov eax, dword [ebx + 0x70]
lea ecx, [eax + 4]
mov eax, dword [eax]
cmp dword [eax + 0x14], 8
jb 0x41cc0c
mov eax, dword [eax]
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
lea esi, [ebp - 0x28]
cmovae edx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
cmovae esi, dword [ebp - 0x28]
cmp dword [ecx + 0x14], 8
jb 0x41cc2a
mov ecx, dword [ecx]
push eax
push edx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x14], 8
jb 0x41cc45
push dword [ebp - 0x28]
call fcn.00434302
add esp, 4
push 0xa
xor eax, eax
mov dword [ebp - 0x14], 7
push str.ShowAVHint
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040c0f0
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
mov ecx, dword [ebx + 0x70]
push eax
call fcn.0041bf80
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 8
jb 0x41cc8f
push dword [ebp - 0x28]
call fcn.00434302
add esp, 4
push 0xb
xor eax, eax
mov dword [ebp - 0x14], 7
push str.OnLoadMusic
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040c0f0
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebx + 0x70]
push eax
call fcn.0041bf80
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 8
jb 0x41ccd9
push dword [ebp - 0x28]
call fcn.00434302
add esp, 4
push 0x11
xor eax, eax
mov dword [ebp - 0x14], 7
push str.IgnoreGameVersion
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040c0f0
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
mov ecx, dword [ebx + 0x70]
push eax
call fcn.0041bf80
cmp dword [ebp - 0x14], 8
jb 0x41cd1f
push dword [ebp - 0x28]
call fcn.00434302
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x41cd30
push dword [ebp - 0x40]
call fcn.00434302
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x41cd59
push dword [ebp - 0x58]
call fcn.00434302
add esp, 4
push 7
xor eax, eax
mov dword [ebp - 0x14], 7
push str.ENGLISH
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040c0f0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x58]
push 8
xor eax, eax
mov dword [ebp - 0x44], 7
push str.Language
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.0040c0f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebx + 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0041bda0
cmp dword [ebp - 0x44], 8
jb 0x41cdcf
push dword [ebp - 0x58]
call fcn.00434302
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x14], 8
jb 0x41cdf8
push dword [ebp - 0x28]
call fcn.00434302
add esp, 4
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x88]
mov esi, dword [ebp - 0x88]
lea edx, [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edi, 8
lea eax, [ebp - 0x88]
mov dword [ebp - 0x18], 0
cmovae eax, esi
cmovae ecx, esi
mov dword [ebp - 0x13c], eax
cmovae edx, esi
mov eax, dword [ebp - 0x78]
lea eax, [ecx + eax*2]
cmp edx, eax
je 0x41ce59
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x140]
push eax
call fcn.00410d90
add esp, 0xc
push 0xa
push 0
push str.SIMPLIFIED
lea ecx, [ebp - 0x88]
call fcn.004140c0
cmp eax, 0xffffffff
je 0x41ce76
xor eax, eax
jmp 0x41ce92
push 0xb
push 0
push str.TRADITIONAL
lea ecx, [ebp - 0x88]
call fcn.004140c0
inc eax
neg eax
sbb eax, eax
add eax, 2
push eax
mov ecx, ebx
call fcn.0041dbd0
push 0xa
xor eax, eax
mov dword [ebp - 0x2c], 7
push str.ShowAVHint
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.0040c0f0
push 1
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x12
mov ecx, dword [ebx + 0x70]
push eax
call fcn.0041bdd0
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x2c], 8
mov byte [ebp - 0x131], al
jb 0x41cef0
push dword [ebp - 0x40]
call fcn.00434302
mov al, byte [ebp - 0x131]
add esp, 4
test al, al
je 0x41d14c
xor eax, eax
mov dword [ebp - 0x2c], 7
push eax
push 0x4590a8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.0040c0f0
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
xor eax, eax
push 0xb
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.360Tray.exe
mov word [ecx], ax
call fcn.0040c0f0
mov cl, 1
call fcn.0041b0b0
add esp, 0x18
test eax, eax
je 0x41cf5f
push 0xb
push str.360Tray.exe
lea ecx, [ebp - 0x40]
call fcn.0040c0f0
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xb
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.360Safe.exe
mov word [ecx], ax
call fcn.0040c0f0
mov cl, 1
call fcn.0041b0b0
add esp, 0x18
test eax, eax
je 0x41cfa0
push 0xb
push str.360Safe.exe
lea ecx, [ebp - 0x40]
call fcn.0040c0f0
cmp dword [ebp - 0x30], 0
je 0x41d137
lea eax, [ebp - 0x40]
mov edx, 0x45b678
push eax
lea ecx, [ebp - 0xe8]
call fcn.00406e20
add esp, 4
push 0x45b664
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x130]
call fcn.00406ff0
add esp, 4
push 0x45b618
mov edx, eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x100]
call fcn.00406ff0
add esp, 4
push 0x45b5d0
mov edx, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x118]
call fcn.00406ff0
add esp, 4
push 0x45b588
mov edx, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xb8]
call fcn.00406ff0
add esp, 4
cmp dword [ebp - 0x104], 8
jb 0x41d03c
push dword [ebp - 0x118]
call fcn.00434302
add esp, 4
xor eax, eax
mov dword [ebp - 0x104], 7
cmp dword [ebp - 0xec], 8
mov dword [ebp - 0x108], 0
mov word [ebp - 0x118], ax
jb 0x41d070
push dword [ebp - 0x100]
call fcn.00434302
add esp, 4
xor eax, eax
mov dword [ebp - 0xec], 7
cmp dword [ebp - 0x11c], 8
mov dword [ebp - 0xf0], 0
mov word [ebp - 0x100], ax
jb 0x41d0a4
push dword [ebp - 0x130]
call fcn.00434302
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0xd4], 8
mov dword [ebp - 0x11c], 7
mov dword [ebp - 0x120], 0
mov word [ebp - 0x130], ax
jb 0x41d0dc
push dword [ebp - 0xe8]
call fcn.00434302
add esp, 4
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
push 4
cmovae eax, dword [ebp - 0xb8]
push 0x45b698
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x41d12c
push 0
push 0
push 2
push dword [ebx + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0xb8]
call fcn.0040bbd0
lea ecx, [ebp - 0x40]
call fcn.0040bbd0
jmp 0x41d2a2
lea ecx, [ebp - 0xb8]
call fcn.0040bbd0
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x2c], 8
jb 0x41d14c
push dword [ebp - 0x40]
call fcn.00434302
add esp, 4
lea ecx, [ebx + 0x74]
call fcn.004183b0
push str.TrainerBGM.mid
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0xe8]
call fcn.0041b460
mov edi, eax
lea esi, [ebx + 0x294]
add esp, 4
cmp esi, edi
je 0x41d1a4
cmp dword [esi + 0x14], 8
jb 0x41d189
push dword [esi]
call fcn.00434302
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00409a40
cmp dword [ebp - 0xd4], 8
jb 0x41d1bb
push dword [ebp - 0xe8]
call fcn.00434302
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x41d1c5
mov eax, dword [esi]
jmp 0x41d1c7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41d1ee
cmp dword [esi + 0x14], 8
jb 0x41d1db
mov esi, dword [esi]
push esi
mov edx, 0x45b6c8
mov ecx, 0xa7
call fcn.004133a0
add esp, 4
cmp byte [ebx + 0xd8], 0
jne 0x41d23c
push str.OnLoadMusic
lea ecx, [ebp - 0xb8]
call fcn.0040c1f0
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebx + 0x70]
or eax, 2
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0xb8]
push 1
push eax
call fcn.0041bdd0
mov byte [ebp - 0x131], 1
test al, al
jne 0x41d243
mov byte [ebp - 0x131], 0
mov dword [ebp - 4], 0x11
mov eax, dword [ebp - 0x138]
test al, 2
je 0x41d26b
cmp dword [ebp - 0xa4], 8
jb 0x41d26b
push dword [ebp - 0xb8]
call fcn.00434302
add esp, 4
cmp byte [ebp - 0x131], 0
je 0x41d27d
push 1
mov ecx, ebx
call fcn.0041d330
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0xa
push 0x2710
push dword [ebx + 0x2c]
call esi
push 0
push 0xc8
push 0x2711
push dword [ebx + 0x2c]
call esi
cmp dword [ebp - 0x74], 8
jb 0x41d2b6
push dword [ebp - 0x88]
call fcn.00434302
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
jb 0x41d2e4
push dword [ebp - 0xa0]
call fcn.00434302
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
jb 0x41d312
push dword [ebp - 0x70]
call fcn.00434302
add esp, 4
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.00434307
mov esp, ebp
pop ebp
ret