Function at 0x4125a0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4405fe
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x44db90]
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 eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, section..data
mov dword [ebp - 0x230], edi
call edx
add eax, 0x10
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 5
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
lea ecx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x412630
sub eax, ecx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x224]
push edx
mov ebx, eax
call fcn.00407380
push 0xd
push str.FLiNGTrainer
lea ebx, [ebp - 0x224]
call fcn.00409850
mov eax, ebx
push eax
lea ecx, [ebp - 0x220]
push ecx
mov ebx, str.TrainerSettings.ini
call fcn.00409580
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp eax, ebx
je 0x4126e4
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4126ce
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x4126ce
call fcn.00402210
mov dword [ebp - 0x21c], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4126bd
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov esi, dword [ebp - 0x21c]
add esi, 0x10
mov dword [ebp - 0x22c], esi
jmp 0x4126e4
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00407380
mov esi, dword [ebp - 0x22c]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41270a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
mov dword [ebp - 0x240], eax
call fcn.00402210
lea ebx, [eax + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
mov dword [ebp - 0x21c], ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412752
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x21c], 0
jne 0x41276a
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00429d10
add esp, 4
push 4
call fcn.00428a5c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4127e6
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 4
test esi, esi
jne 0x4127b6
mov ecx, ebx
xor eax, eax
push esi
push ecx
mov ebx, eax
call fcn.00407380
mov eax, dword [ebp - 0x21c]
jmp 0x4127e8
mov eax, esi
lea edx, [eax + 2]
jmp 0x4127c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4127c0
mov ecx, dword [ebp - 0x21c]
sub eax, edx
sar eax, 1
push esi
push ecx
mov ebx, eax
call fcn.00407380
mov eax, dword [ebp - 0x21c]
jmp 0x4127e8
xor eax, eax
mov byte [ebp - 4], 1
push 8
mov dword [edi + 0x74], eax
call fcn.00428a5c
mov esi, eax
add esp, 4
mov dword [ebp - 0x238], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x412847
mov edx, dword [edi + 0x74]
mov eax, dword [section..data]
mov dword [ebp - 0x21c], edx
mov edx, dword [eax + 0xc]
mov ecx, section..data
lea ebx, [esi + 4]
call edx
add eax, 0x10
mov dword [ebx], eax
push str.Trainer
push ebx
mov ebx, 7
mov byte [ebp - 4], 6
call fcn.00407380
mov eax, dword [ebp - 0x21c]
mov dword [esi], eax
jmp 0x412849
xor esi, esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
mov dword [edi + 0x78], esi
mov dword [ebp - 0x238], eax
call fcn.00402210
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412892
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
test ebx, ebx
jne 0x412a5f
push 0x444a9c
push 2
call fcn.0042a9c6
mov ebx, eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, section..data
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
mov byte [ebp - 4], 7
test ebx, ebx
je 0x4128f9
test ebx, 0xffff0000
jne 0x4128f9
movzx ebx, bx
push ebx
call fcn.00407550
add esp, 4
test eax, eax
je 0x41290a
push eax
mov eax, ebx
lea edi, [ebp - 0x220]
call fcn.00402170
mov edi, dword [ebp - 0x230]
jmp 0x412904
lea eax, [ebp - 0x220]
call fcn.00401f00
mov esi, dword [ebp - 0x220]
mov byte [ebp - 4], 8
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 9
cmp dword [esi - 0xc], 0
jl 0x41299b
push str.Chinese
push esi
call fcn.00429407
add esp, 8
test eax, eax
je 0x41299b
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x41299b
cmp dword [esi - 0xc], 0
jl 0x412971
push str.Traditional
push esi
call fcn.00429407
add esp, 8
test eax, eax
je 0x412971
sub eax, esi
sar eax, 1
mov edx, str.Chinese_Traditional
cmp eax, 0xffffffff
jne 0x412976
mov edx, str.Chinese_Simplified
mov eax, edx
lea esi, [eax + 2]
jmp 0x412980
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412980
sub eax, esi
sar eax, 1
push edx
lea ecx, [ebp - 0x21c]
push ecx
mov ebx, eax
jmp 0x4129ac
push str.English
lea edx, [ebp - 0x21c]
push edx
mov ebx, 7
call fcn.00407380
mov eax, dword [edi + 0x78]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov eax, dword [eax]
mov ebx, dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push ebx
push str.Language
push ecx
call esi
mov eax, dword [edi + 0x78]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
push str.True
push str.ShowAVHint
push ecx
call esi
mov eax, dword [edi + 0x78]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
push str.True
push str.OnLoadMusic
push ecx
call esi
mov eax, dword [edi + 0x78]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
push str.False
push str.IgnoreGameVersion
push ecx
call esi
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412a39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412a5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x78]
lea esi, [ebp - 0x23c]
call fcn.00411c30
mov ebx, eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x412a86
push 0x80070057
call fcn.004079e0
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x412aa0
mov eax, esi
mov ecx, ebx
call fcn.00407900
mov eax, dword [ebx]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.004296b1
mov eax, dword [ebx]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x412a7c
mov dword [eax - 0xc], esi
mov edx, dword [ebx]
xor eax, eax
mov word [edx + esi*2], ax
mov eax, dword [ebx]
sub eax, 0x10
call fcn.00402210
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412afa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
jl 0x412b2b
push str.SIMPLIFIED
push esi
call fcn.00429407
add esp, 8
test eax, eax
je 0x412b25
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x412b25
xor eax, eax
jmp 0x412b56
cmp dword [esi - 0xc], 0
jge 0x412b30
or eax, 0xffffffff
jmp 0x412b4b
push str.TRADITIONAL
push esi
call fcn.00429407
add esp, 8
test eax, eax
jne 0x412b47
or eax, 0xffffffff
jmp 0x412b4b
sub eax, esi
sar eax, 1
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea eax, [ecx + 1]
push eax
push edi
call fcn.00413680
mov esi, dword [ebp - 0x230]
mov ecx, dword [esi + 0x78]
push 1
mov edi, str.ShowAVHint
call fcn.00411c60
test eax, eax
je 0x412cd2
lea edx, [ebp - 0x220]
push edx
mov ecx, 0x444b60
call fcn.004028b0
push 0
push ecx
mov byte [ebp - 4], 0xd
mov eax, esp
mov dword [ebp - 0x228], esp
push eax
mov ecx, str.360Tray.exe
call fcn.004028b0
call fcn.00411640
add esp, 8
test eax, eax
je 0x412bc7
push str.360Tray.exe
lea ecx, [ebp - 0x220]
push ecx
mov ebx, 0xb
call fcn.00407380
push 0
push ecx
mov edx, esp
mov dword [ebp - 0x228], esp
push edx
mov ecx, str.360Safe.exe
call fcn.004028b0
call fcn.00411640
add esp, 8
test eax, eax
je 0x412bff
push str.360Safe.exe
lea eax, [ebp - 0x220]
push eax
mov ebx, 0xb
call fcn.00407380
mov ecx, dword [ebp - 0x220]
cmp dword [ecx - 0xc], 0
je 0x412cac
lea edx, [ebp - 0x228]
push 0x4468c8
push edx
lea ecx, [ebp - 0x220]
call fcn.00401df0
push eax
lea eax, [ebp - 0x234]
push eax
mov ebx, 0x4467e0
mov byte [ebp - 4], 0xe
call fcn.00409580
mov eax, dword [eax]
add esp, 0x10
push 4
push str.Fuck360
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
mov eax, dword [ebp - 0x234]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412c79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412c9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x412cac
push 1
mov eax, esi
call fcn.00413460
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412cd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x230]
mov ebx, esi
call fcn.004139c0
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x234]
push edx
mov ebx, 0x4468e8
call fcn.00409580
add esp, 8
add esi, 0x140
mov byte [ebp - 4], 0xf
mov ecx, dword [eax]
mov edi, dword [esi]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x412d59
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x412d4f
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x412d4f
call fcn.00402210
mov dword [ebp - 0x228], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x412d42
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x228]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x412d59
mov ebx, dword [ecx - 0xc]
push ecx
push esi
call fcn.00407380
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412d7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi]
push esi
call fcn.00408dd0
mov esi, dword [ebp - 0x230]
add esp, 4
cmp dword [esi + 0xac], 0
jne 0x412db5
mov ecx, dword [esi + 0x78]
push 1
mov edi, str.OnLoadMusic
call fcn.00411c60
test eax, eax
je 0x412db5
push 1
mov ecx, esi
call fcn.00412e70
mov ecx, dword [esi + 0x30]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x64
push 0x2711
push ecx
call edi
mov edx, dword [esi + 0x30]
push 0
push 0xa
push 0x2710
push edx
call edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412dff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x238]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00428a4d
mov esp, ebp
pop ebp
ret