Function at 0x41e9a0
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 0x457383
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
mov eax, dword [0x47306c]
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.004147b0
push str.TrainerSettings.ini
lea edx, [ebp - 0xbc]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.0041d5a0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x8c]
cmp eax, esi
je 0x41ea6f
mov ecx, eax
call fcn.0040a670
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 0x41eaaf
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41eaa5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f884
push edx
push ecx
call fcn.0043507c
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 0x41eaec
cmp dword [ebp - 0xa8], 8
lea eax, [ebp - 0xbc]
cmovae eax, dword [ebp - 0xbc]
push eax
call fcn.0043d0d2
add esp, 4
push 0x18
call fcn.0043508a
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 0x41eb35
cmp dword [ebp - 0x78], 8
mov ecx, esi
push dword [ebp - 0x7c]
cmovae eax, dword [ebp - 0x8c]
push eax
call fcn.00409b10
mov byte [ebp - 4], 1
push 0x1c
mov dword [edi + 0x6c], esi
call fcn.0043508a
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.00409b10
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 0x41ebc5
cmp dword [ebp - 0x18], 8
mov eax, edx
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00409b10
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 0x41ec0b
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ec01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f889
push edx
push ecx
call fcn.0043507c
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 0x41ef71
push 0x4674d3
push 2
call fcn.0043d355
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 0x41ec54
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040a4c0
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.0040eb50
add esp, 0xc
cmp eax, 0xffffffff
je 0x41ecea
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.0040eb50
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 0x41ecd7
sub ecx, esi
sar ecx, 1
push ecx
push edx
jmp 0x41ecf1
push 7
push str.English
lea ecx, [ebp - 0x5c]
call fcn.00409b10
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.00409b10
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x41ed29
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 0x41ed4a
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 0x41ed8e
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ed84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f88e
push edx
push ecx
call fcn.0043507c
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.00409b10
push 1
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xa
mov ecx, dword [edi + 0x70]
push eax
call fcn.0041e0f0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x41ee01
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41edf7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f893
push edx
push ecx
call fcn.0043507c
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.00409b10
push 1
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xb
mov ecx, dword [edi + 0x70]
push eax
call fcn.0041e0f0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x41ee74
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ee6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f898
push edx
push ecx
call fcn.0043507c
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.00409b10
push 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xc
mov ecx, dword [edi + 0x70]
push eax
call fcn.0041e0f0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x41eee7
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41eedd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f89d
push edx
push ecx
call fcn.0043507c
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x41ef25
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ef1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8a2
push edx
push ecx
call fcn.0043507c
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 0x41ef71
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41ef67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8a7
push edx
push ecx
call fcn.0043507c
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.00409b10
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.00409b10
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.0041dc70
mov dword [ebp - 0x12c], 4
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0xc0]
cmp edx, 8
jb 0x41f036
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f02c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8ac
push edx
push ecx
call fcn.0043507c
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 0x41f091
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f087
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8b1
push edx
push ecx
call fcn.0043507c
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 0x41f11b
sub ecx, esi
xor edi, edi
mov dword [ebp - 0x124], ecx
movzx eax, word [esi]
push eax
call fcn.0043cf37
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 0x41f0f2
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.00415100
add esp, 0xc
cmp eax, 0xffffffff
je 0x41f145
xor ecx, ecx
jmp 0x41f16c
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.00415100
xor ecx, ecx
add esp, 0xc
cmp eax, 0xffffffff
sete cl
inc ecx
push ecx
mov ecx, edi
call fcn.00420230
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.00409b10
push ecx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
mov ecx, dword [edi + 0x70]
push eax
call fcn.0041de80
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x11d], al
cmp edx, 8
jb 0x41f1f2
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f1e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8b6
push edx
push ecx
call fcn.0043507c
mov al, byte [ebp - 0x11d]
add esp, 8
test al, al
je 0x41f5c7
xor eax, eax
mov dword [ebp - 0x1c], 0
push eax
push 0x467d20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00409b10
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.00409b10
mov cl, 1
call fcn.0041ce50
add esp, 0x18
test eax, eax
je 0x41f261
push 0xb
push str.360Tray.exe
lea ecx, [ebp - 0x2c]
call fcn.00409b10
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.00409b10
mov cl, 1
call fcn.0041ce50
add esp, 0x18
test eax, eax
je 0x41f2a2
push 0xb
push str.360Safe.exe
lea ecx, [ebp - 0x2c]
call fcn.00409b10
cmp dword [ebp - 0x1c], 0
je 0x41f589
lea eax, [ebp - 0x2c]
mov edx, 0x46b010
push eax
lea ecx, [ebp - 0x11c]
call fcn.00405c10
add esp, 4
push 0x46affc
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xa4]
call fcn.00405da0
add esp, 4
push 0x46afb0
mov edx, eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x104]
call fcn.00405da0
add esp, 4
push 0x46af68
mov edx, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xec]
call fcn.00405da0
add esp, 4
push 0x46af20
mov edx, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x5c]
call fcn.00405da0
mov byte [ebp - 4], 0x16
add esp, 4
mov edx, dword [ebp - 0xd8]
cmp edx, 8
jb 0x41f368
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f35e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8bb
push edx
push ecx
call fcn.0043507c
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 0x41f3c9
mov ecx, dword [ebp - 0x104]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f3bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8c0
push edx
push ecx
call fcn.0043507c
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 0x41f42a
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f420
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8c5
push edx
push ecx
call fcn.0043507c
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 0x41f48b
mov ecx, dword [ebp - 0x11c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f481
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8ca
push edx
push ecx
call fcn.0043507c
add esp, 8
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push 4
cmovae eax, dword [ebp - 0x5c]
push 0x46b030
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x41f54f
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 0x41f4f8
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f4ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8cf
push edx
push ecx
call fcn.0043507c
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 0x41f77e
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f540
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8d4
push edx
push ecx
call fcn.0043507c
add esp, 8
jmp 0x41f77e
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x41f589
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f57f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8d9
push edx
push ecx
call fcn.0043507c
add esp, 8
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x41f5c7
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f5bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8de
push edx
push ecx
call fcn.0043507c
add esp, 8
push ecx
lea ecx, [edi + 0x7c]
call fcn.0041ca50
test eax, eax
setne dl
mov byte [edi + 0xd8], dl
test eax, eax
je 0x41f5f3
cmp dword [edi + 0xb0], 0x10000
jae 0x41f5f3
lea ecx, [edi + 0x7c]
call fcn.0041cd90
push str.TrainerBGM.mid
lea edx, [ebp - 0xbc]
lea ecx, [ebp - 0x11c]
call fcn.0041d5a0
lea esi, [edi + 0x288]
mov dword [ebp - 0x128], eax
add esp, 4
cmp esi, eax
je 0x41f64c
mov ecx, esi
call fcn.0040a670
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 0x41f68c
mov ecx, dword [ebp - 0x11c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f682
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8e3
push edx
push ecx
call fcn.0043507c
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41f696
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f6bd
cmp dword [esi + 0x14], 8
jb 0x41f6aa
mov esi, dword [esi]
push esi
mov edx, 0x46b060
mov ecx, 0xa7
call fcn.00414290
add esp, 4
cmp byte [edi + 0xd8], 0
jne 0x41f725
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.00409b10
mov byte [ebp - 4], 0x18
mov eax, 6
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0xa4]
push ecx
mov ecx, dword [edi + 0x70]
push eax
call fcn.0041de80
mov byte [ebp - 0x11d], 1
test al, al
jne 0x41f72c
mov byte [ebp - 0x11d], 0
mov dword [ebp - 4], 0x11
test byte [ebp - 0x12c], 2
je 0x41f747
lea ecx, [ebp - 0xa4]
call fcn.0040a670
cmp byte [ebp - 0x11d], 0
je 0x41f759
push 1
mov ecx, edi
call fcn.0041f900
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 0x41f7b8
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f7ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8e8
push edx
push ecx
call fcn.0043507c
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 0x41f80c
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f802
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8ed
push edx
push ecx
call fcn.0043507c
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 0x41f866
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f85c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8f2
push edx
push ecx
call fcn.0043507c
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.0043506b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
call fcn.00439e03
int3