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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fa1f
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x44cb90]
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 - 0x22c], edi
call edx
add eax, 0x10
mov dword [ebp - 0x230], 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 - 0x238], 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 0x411910
sub eax, ecx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x230]
push edx
mov ebx, eax
call fcn.00407550
push 0xd
push str.FLiNGTrainer
lea ebx, [ebp - 0x230]
call fcn.00409d40
mov eax, ebx
push eax
lea ecx, [ebp - 0x224]
push ecx
mov ebx, str.TrainerSettings.ini
call fcn.00409a70
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp eax, ebx
je 0x4119c4
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4119ae
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x4119ae
call fcn.004023d0
mov dword [ebp - 0x234], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x41199d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov esi, dword [ebp - 0x234]
add esi, 0x10
mov dword [ebp - 0x238], esi
jmp 0x4119c4
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x238]
push ecx
call fcn.00407550
mov esi, dword [ebp - 0x238]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4119ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
mov dword [ebp - 0x234], eax
call fcn.004023d0
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 - 0x224], ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411a32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x224], 0
jne 0x411a4a
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.004292a0
add esp, 4
push 4
call fcn.00427fec
mov ebx, eax
add esp, 4
mov dword [ebp - 0x220], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x411ac6
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 0x411a96
mov ecx, ebx
xor eax, eax
push esi
push ecx
mov ebx, eax
call fcn.00407550
mov eax, dword [ebp - 0x220]
jmp 0x411ac8
mov eax, esi
lea edx, [eax + 2]
jmp 0x411aa0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411aa0
mov ecx, dword [ebp - 0x220]
sub eax, edx
sar eax, 1
push esi
push ecx
mov ebx, eax
call fcn.00407550
mov eax, dword [ebp - 0x220]
jmp 0x411ac8
xor eax, eax
mov byte [ebp - 4], 1
push 8
mov dword [edi + 0x74], eax
call fcn.00427fec
mov esi, eax
add esp, 4
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x411b27
mov edx, dword [edi + 0x74]
mov eax, dword [section..data]
mov dword [ebp - 0x224], 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.00407550
mov eax, dword [ebp - 0x224]
mov dword [esi], eax
jmp 0x411b29
xor esi, esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
mov dword [edi + 0x78], esi
mov dword [ebp - 0x224], eax
call fcn.004023d0
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 0x411b72
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
test ebx, ebx
jne 0x411d3f
push 0x443abc
push 2
call fcn.00429f59
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 - 0x21c], esi
mov byte [ebp - 4], 7
test ebx, ebx
je 0x411bd9
test ebx, 0xffff0000
jne 0x411bd9
movzx ebx, bx
push ebx
call fcn.00407720
add esp, 4
test eax, eax
je 0x411bea
push eax
mov eax, ebx
lea edi, [ebp - 0x21c]
call fcn.00402330
mov edi, dword [ebp - 0x22c]
jmp 0x411be4
lea eax, [ebp - 0x21c]
call fcn.004020d0
mov esi, dword [ebp - 0x21c]
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 - 0x220], eax
mov byte [ebp - 4], 9
cmp dword [esi - 0xc], 0
jl 0x411c7b
push str.Chinese
push esi
call fcn.00428997
add esp, 8
test eax, eax
je 0x411c7b
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x411c7b
cmp dword [esi - 0xc], 0
jl 0x411c51
push str.Traditional
push esi
call fcn.00428997
add esp, 8
test eax, eax
je 0x411c51
sub eax, esi
sar eax, 1
mov edx, str.Chinese_Traditional
cmp eax, 0xffffffff
jne 0x411c56
mov edx, str.Chinese_Simplified
mov eax, edx
lea esi, [eax + 2]
jmp 0x411c60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411c60
sub eax, esi
sar eax, 1
push edx
lea ecx, [ebp - 0x220]
push ecx
mov ebx, eax
jmp 0x411c8c
push str.English
lea edx, [ebp - 0x220]
push edx
mov ebx, 7
call fcn.00407550
mov eax, dword [edi + 0x78]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov eax, dword [eax]
mov ebx, dword [ebp - 0x220]
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 0x411d19
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 - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411d3f
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 - 0x24c]
call fcn.00410f10
mov ebx, eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x411d66
push 0x80070057
call fcn.00407bb0
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x411d80
mov eax, esi
mov ecx, ebx
call fcn.00407ad0
mov eax, dword [ebx]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00428c41
mov eax, dword [ebx]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x411d5c
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.004023d0
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411dda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x220]
cmp dword [esi - 0xc], 0
jl 0x411e0b
push str.SIMPLIFIED
push esi
call fcn.00428997
add esp, 8
test eax, eax
je 0x411e05
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x411e05
xor eax, eax
jmp 0x411e36
cmp dword [esi - 0xc], 0
jge 0x411e10
or eax, 0xffffffff
jmp 0x411e2b
push str.TRADITIONAL
push esi
call fcn.00428997
add esp, 8
test eax, eax
jne 0x411e27
or eax, 0xffffffff
jmp 0x411e2b
sub eax, esi
sar eax, 1
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea eax, [ecx + 1]
push eax
push edi
call fcn.00412b40
mov edx, dword [ebp - 0x22c]
mov ecx, dword [edx + 0x78]
push 1
mov edi, str.ShowAVHint
call fcn.00410f40
test eax, eax
je 0x4120a5
lea eax, [ebp - 0x21c]
push eax
mov ecx, 0x443b68
call fcn.00402a70
push 1
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x228], esp
push ecx
mov ecx, str.360Tray.exe
call fcn.00402a70
call fcn.004107e0
add esp, 8
test eax, eax
je 0x411ea7
push str.360Tray.exe
lea edx, [ebp - 0x21c]
push edx
mov ebx, 0xb
call fcn.00407550
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x228], esp
push eax
mov ecx, str.360Safe.exe
call fcn.00402a70
call fcn.004107e0
add esp, 8
test eax, eax
je 0x411edf
push str.360Safe.exe
lea ecx, [ebp - 0x21c]
push ecx
mov ebx, 0xb
call fcn.00407550
mov edx, dword [ebp - 0x21c]
cmp dword [edx - 0xc], 0
je 0x41207f
lea eax, [ebp - 0x228]
push 0x445cb0
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401fc0
push eax
lea ecx, [ebp - 0x23c]
push ecx
mov ebx, 0x445c9c
mov byte [ebp - 4], 0xe
call fcn.00409a70
push eax
lea edx, [ebp - 0x240]
push edx
mov ebx, 0x445c50
mov byte [ebp - 4], 0xf
call fcn.00409a70
push eax
lea eax, [ebp - 0x248]
push eax
mov ebx, 0x445c08
mov byte [ebp - 4], 0x10
call fcn.00409a70
push eax
lea ecx, [ebp - 0x244]
push ecx
mov ebx, 0x445bc0
mov byte [ebp - 4], 0x11
call fcn.00409a70
mov eax, dword [eax]
add esp, 0x28
push 4
push str.Fuck360
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
mov eax, dword [ebp - 0x244]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411f9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411fc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411fe7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xe
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 0x41200d
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 0x412033
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41207f
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx + 0x30]
push 0
push 0
push 2
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 0xc
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 0x412073
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea eax, [esi - 0x10]
jmp 0x412256
mov byte [ebp - 4], 0xc
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 0x4120a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x22c]
mov eax, dword [esi + 0x8c]
lea edi, [esi + 0x8c]
push 1
push ecx
sub eax, 0x10
mov dword [ebp - 0x228], esp
mov ebx, esp
call fcn.004023d0
add eax, 0x10
mov dword [ebx], eax
call fcn.004107e0
mov ecx, dword [edi + 8]
add esp, 8
cmp ecx, eax
je 0x4120e9
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
mov dword [edi + 8], ecx
mov eax, dword [edi + 8]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov dword [edi + 0x20], eax
test eax, eax
je 0x41210d
cmp dword [esi + 0x98], 0x100000
jae 0x41210d
call fcn.004106e0
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x23c]
push eax
mov ebx, 0x445cd0
call fcn.00409a70
add esp, 8
mov esi, dword [ebp - 0x22c]
add esi, 0x140
mov byte [ebp - 4], 0x12
mov ecx, dword [eax]
mov edi, dword [esi]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x41218d
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x412183
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x412183
call fcn.004023d0
mov dword [ebp - 0x228], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x412176
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 0x41218d
mov ebx, dword [ecx - 0xc]
push ecx
push esi
call fcn.00407550
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4121b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
sub eax, 0x10
call fcn.004023d0
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
lea eax, [edi - 0x10]
setne bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4121eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x4121fa
mov esi, dword [esi]
push esi
call fcn.00409050
add esp, 4
mov esi, dword [ebp - 0x22c]
cmp dword [esi + 0xac], 0
jne 0x412225
mov ecx, dword [esi + 0x78]
push 1
mov edi, str.OnLoadMusic
call fcn.00410f40
test eax, eax
je 0x412225
push 1
mov ecx, esi
call fcn.004122e0
mov ecx, dword [esi + 0x30]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0xa
push 0x2710
push ecx
call edi
mov edx, dword [esi + 0x30]
push 0
push 0x64
push 0x2711
push edx
call edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41226f
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 - 0x224]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412292
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4122b8
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.00427fdd
mov esp, ebp
pop ebp
ret