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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4527c3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x124], 0
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], eax
call fcn.0040d7c0
push str.TrainerSettings.ini
lea edx, [ebp - 0xbc]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.004186a0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x8c]
cmp eax, esi
je 0x419d9f
mov ecx, eax
call fcn.004034d0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x7c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x90]
cmp edx, 8
jb 0x419ddf
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419dd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abca
push edx
push ecx
call fcn.00430470
add esp, 8
cmp dword [ebp - 0xa8], 8
lea eax, [ebp - 0xbc]
cmovae eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x419e1c
cmp dword [ebp - 0xa8], 8
lea eax, [ebp - 0xbc]
cmovae eax, dword [ebp - 0xbc]
push eax
call fcn.004389da
add esp, 4
push 0x18
call fcn.0043047e
mov esi, eax
add esp, 4
mov dword [ebp - 0x130], esi
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 3
cmp esi, eax
je 0x419e65
cmp dword [ebp - 0x78], 8
mov ecx, esi
push dword [ebp - 0x7c]
cmovae eax, dword [ebp - 0x8c]
push eax
call fcn.00402f60
mov byte [ebp - 4], 1
push 0x1c
mov dword [edi + 0x6c], esi
call fcn.0043047e
mov esi, eax
add esp, 4
mov dword [ebp - 0x130], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
push 7
xor eax, eax
mov dword [ebp - 0x1c], 0
push str.Trainer
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00402f60
mov eax, dword [edi + 0x6c]
lea ecx, [esi + 4]
xor edx, edx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x12c], eax
mov word [ecx], dx
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 6
cmp ecx, edx
je 0x419ef5
cmp dword [ebp - 0x18], 8
mov eax, edx
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00402f60
mov eax, dword [ebp - 0x12c]
mov dword [esi], eax
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x70], esi
cmp edx, 8
jb 0x419f3b
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419f31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abcf
push edx
push ecx
call fcn.00430470
add esp, 8
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41a2a1
push 0x462c23
push 2
call fcn.00438c5d
mov edx, eax
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0x18], 0xf
add esp, 8
mov byte [ebp - 0x2c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419f84
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004032f0
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
cmp esi, 0x10
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push 7
push str.Chinese
push eax
call fcn.00404cf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x41a01a
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push 0xb
cmp esi, 0x10
push str.Traditional
cmovae ecx, dword [ebp - 0x2c]
push 0
call fcn.00404cf0
add esp, 0xc
mov ecx, str.Chinese_Simplified
cmp eax, 0xffffffff
mov edx, str.Chinese_Traditional
cmove edx, ecx
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a007
sub ecx, esi
sar ecx, 1
push ecx
push edx
jmp 0x41a021
push 7
push str.English
lea ecx, [ebp - 0x5c]
call fcn.00402f60
push 8
xor eax, eax
mov dword [ebp - 0x34], 0
push str.Language
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00402f60
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x41a059
mov eax, dword [eax]
cmp dword [ebp - 0x48], 8
lea edx, [ebp - 0x5c]
lea esi, [ebp - 0x44]
cmovae edx, dword [ebp - 0x5c]
cmp dword [ebp - 0x30], 8
cmovae esi, dword [ebp - 0x44]
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x41a07a
mov ecx, dword [ecx]
push eax
push edx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x41a0be
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a0b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abd4
push edx
push ecx
call fcn.00430470
add esp, 8
push 0xa
xor eax, eax
mov dword [ebp - 0x34], 0
push str.ShowAVHint
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00402f60
push 1
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xa
mov ecx, dword [edi + 0x70]
push eax
call fcn.00419420
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x41a131
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a127
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abd9
push edx
push ecx
call fcn.00430470
add esp, 8
push 0xb
xor eax, eax
mov dword [ebp - 0x34], 0
push str.OnLoadMusic
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00402f60
push 1
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xb
mov ecx, dword [edi + 0x70]
push eax
call fcn.00419420
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x41a1a4
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a19a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abde
push edx
push ecx
call fcn.00430470
add esp, 8
push 0x11
xor eax, eax
mov dword [ebp - 0x34], 0
push str.IgnoreGameVersion
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00402f60
push 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xc
mov ecx, dword [edi + 0x70]
push eax
call fcn.00419420
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x41a217
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a20d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abe3
push edx
push ecx
call fcn.00430470
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x41a255
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a24b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abe8
push edx
push ecx
call fcn.00430470
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 0x10
jb 0x41a2a1
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41a297
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abed
push edx
push ecx
call fcn.00430470
add esp, 8
push 7
xor eax, eax
mov dword [ebp - 0x34], 0
push str.ENGLISH
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00402f60
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xd4]
push 8
xor eax, eax
mov dword [ebp - 0xc4], 0
push str.Language
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
call fcn.00402f60
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x44]
mov ecx, dword [edi + 0x70]
push eax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ecx + 4]
mov ecx, dword [ecx]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00418f50
mov dword [ebp - 0x12c], 4
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0xc0]
cmp edx, 8
jb 0x41a366
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a35c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abf2
push edx
push ecx
call fcn.00430470
add esp, 8
xor eax, eax
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x41a3c1
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a3b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abf7
push edx
push ecx
call fcn.00430470
add esp, 8
mov esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x124], 0
cmp dword [ebp - 0x60], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
cmovae ecx, dword [ebp - 0x74]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea eax, [eax + esi*2]
lea esi, [ebp - 0x74]
mov edx, eax
cmovae esi, dword [ebp - 0x74]
sub edx, esi
inc edx
shr edx, 1
cmp esi, eax
cmova edx, dword [ebp - 0x124]
mov dword [ebp - 0x130], edx
test edx, edx
je 0x41a44b
sub ecx, esi
xor edi, edi
mov dword [ebp - 0x124], ecx
movzx eax, word [esi]
push eax
call fcn.00438507
mov ecx, dword [ebp - 0x124]
lea esi, [esi + 2]
inc edi
add esp, 4
mov word [esi + ecx - 2], ax
cmp edi, dword [ebp - 0x130]
jne 0x41a422
mov edi, dword [ebp - 0x128]
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x64]
cmp esi, 8
push 0xa
cmovae ecx, dword [ebp - 0x74]
push str.SIMPLIFIED
push 0
call fcn.0040e010
add esp, 0xc
cmp eax, 0xffffffff
je 0x41a475
xor ecx, ecx
jmp 0x41a49c
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x74]
push 0xb
cmp esi, 8
push str.TRADITIONAL
cmovae ecx, dword [ebp - 0x74]
push 0
call fcn.0040e010
xor ecx, ecx
add esp, 0xc
cmp eax, 0xffffffff
sete cl
inc ecx
push ecx
mov ecx, edi
call fcn.0041b570
push 0xa
xor eax, eax
mov dword [ebp - 0x1c], 0
push str.ShowAVHint
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00402f60
push 1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
mov ecx, dword [edi + 0x70]
push eax
call fcn.004191a0
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x11d], al
cmp edx, 8
jb 0x41a523
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a513
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abfc
push edx
push ecx
call fcn.00430470
mov al, byte [ebp - 0x11d]
add esp, 8
test al, al
je 0x41a8f8
xor eax, eax
mov dword [ebp - 0x1c], 0
push eax
push 0x463468
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00402f60
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
xor eax, eax
push 0xb
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.360Tray.exe
mov word [ecx], ax
call fcn.00402f60
mov cl, 1
call fcn.00418280
add esp, 0x18
test eax, eax
je 0x41a592
push 0xb
push str.360Tray.exe
lea ecx, [ebp - 0x2c]
call fcn.00402f60
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xb
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.360Safe.exe
mov word [ecx], ax
call fcn.00402f60
mov cl, 1
call fcn.00418280
add esp, 0x18
test eax, eax
je 0x41a5d3
push 0xb
push str.360Safe.exe
lea ecx, [ebp - 0x2c]
call fcn.00402f60
cmp dword [ebp - 0x1c], 0
je 0x41a8ba
lea eax, [ebp - 0x2c]
mov edx, 0x4674a8
push eax
lea ecx, [ebp - 0x11c]
call fcn.004012b0
add esp, 4
push 0x467494
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xa4]
call fcn.00401390
add esp, 4
push 0x467448
mov edx, eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x104]
call fcn.00401390
add esp, 4
push 0x467400
mov edx, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xec]
call fcn.00401390
add esp, 4
push 0x4673b8
mov edx, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x5c]
call fcn.00401390
mov byte [ebp - 4], 0x16
add esp, 4
mov edx, dword [ebp - 0xd8]
cmp edx, 8
jb 0x41a699
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a68f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ac01
push edx
push ecx
call fcn.00430470
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
cmp edx, 8
jb 0x41a6fa
mov ecx, dword [ebp - 0x104]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a6f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ac06
push edx
push ecx
call fcn.00430470
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 7
mov word [ebp - 0x104], ax
cmp edx, 8
jb 0x41a75b
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a751
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ac0b
push edx
push ecx
call fcn.00430470
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
cmp edx, 8
jb 0x41a7bc
mov ecx, dword [ebp - 0x11c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a7b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ac10
push edx
push ecx
call fcn.00430470
add esp, 8
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push 4
cmovae eax, dword [ebp - 0x5c]
push 0x4674c8
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x41a880
push 0
push 0
push 2
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x41a829
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a81f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ac15
push edx
push ecx
call fcn.00430470
add esp, 8
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 8
jb 0x41aac4
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a871
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ac1a
push edx
push ecx
call fcn.00430470
add esp, 8
jmp 0x41aac4
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x41a8ba
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a8b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ac1f
push edx
push ecx
call fcn.00430470
add esp, 8
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x41a8f8
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a8ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ac24
push edx
push ecx
call fcn.00430470
add esp, 8
sub esp, 0x18
lea esi, [edi + 0x7c]
mov ecx, esp
push esi
call fcn.00413c50
mov cl, 1
call fcn.00418280
mov edx, dword [esi + 0x30]
add esp, 0x18
cmp edx, eax
je 0x41a923
xor ecx, ecx
test edx, edx
cmove ecx, eax
mov edx, ecx
mov dword [esi + 0x30], edx
test edx, edx
setne al
mov byte [esi + 0x5c], al
test edx, edx
je 0x41a942
cmp dword [edi + 0xb0], 0x10000
jae 0x41a942
mov ecx, esi
call fcn.004181c0
push str.TrainerBGM.mid
lea edx, [ebp - 0xbc]
lea ecx, [ebp - 0x11c]
call fcn.004186a0
lea esi, [edi + 0x23c]
mov dword [ebp - 0x128], eax
add esp, 4
cmp esi, eax
je 0x41a99b
mov ecx, esi
call fcn.004034d0
mov eax, dword [ebp - 0x128]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x108]
cmp edx, 8
jb 0x41a9db
mov ecx, dword [ebp - 0x11c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a9d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ac29
push edx
push ecx
call fcn.00430470
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41a9e5
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41aa02
cmp dword [esi + 0x14], 8
jb 0x41a9f9
mov esi, dword [esi]
push esi
call fcn.0040d2c0
add esp, 4
cmp byte [edi + 0xd8], 0
jne 0x41aa6b
push 0xb
xor eax, eax
mov dword [ebp - 0x94], 0
push str.OnLoadMusic
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
call fcn.00402f60
mov byte [ebp - 4], 0x18
mov eax, 6
mov ecx, dword [edi + 0x70]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0xa4]
push 1
push eax
call fcn.004191a0
mov byte [ebp - 0x11d], 1
test al, al
jne 0x41aa72
mov byte [ebp - 0x11d], 0
mov dword [ebp - 4], 0x11
test byte [ebp - 0x12c], 2
je 0x41aa8d
lea ecx, [ebp - 0xa4]
call fcn.004034d0
cmp byte [ebp - 0x11d], 0
je 0x41aa9f
push 1
mov ecx, edi
call fcn.0041ac40
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0xa
push 0x2710
push dword [edi + 0x2c]
call esi
push 0
push 0xc8
push 0x2711
push dword [edi + 0x2c]
call esi
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x41aafe
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aaf4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ac2e
push edx
push ecx
call fcn.00430470
add esp, 8
mov edx, dword [ebp - 0xa8]
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
cmp edx, 8
jb 0x41ab52
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ab48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ac33
push edx
push ecx
call fcn.00430470
add esp, 8
mov edx, dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
cmp edx, 8
jb 0x41abac
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aba2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ac38
push edx
push ecx
call fcn.00430470
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043045f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
call fcn.004353c3
int3