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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x127c
call fcn.004125f0
mov eax, dword [0x4297c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
mov dword [ebp - 0x1248], ebx
push ecx
mov word [ebp - 0x20c], ax
call fcn.004123b0
add esp, 0xc
push ebx
push 0x1a
lea edx, [ebp - 0x20c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.360seextensionsExtYouxiExtYouxi.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4116de
push 4
call fcn.00412de0
add esp, 4
cmp eax, ebx
je 0x411396
lea edx, [ebp - 0x1244]
mov dword [eax], edx
mov dword [ebp - 0x1244], eax
jmp 0x41139c
mov dword [ebp - 0x1244], ebx
push 4
mov dword [ebp - 0x1238], ebx
mov dword [ebp - 0x1234], ebx
mov dword [ebp - 0x1230], ebx
call fcn.00412de0
add esp, 4
cmp eax, ebx
je 0x4113cc
lea ecx, [ebp - 0x1260]
mov dword [eax], ecx
mov dword [ebp - 0x1260], eax
jmp 0x4113d2
mov dword [ebp - 0x1260], ebx
push ebx
xor edx, edx
mov edi, 7
push 0x422f90
lea ecx, [ebp - 0x1228]
mov dword [ebp - 0x1254], ebx
mov dword [ebp - 0x1250], ebx
mov dword [ebp - 0x124c], ebx
mov dword [ebp - 0x1210], edi
mov dword [ebp - 0x1214], ebx
mov word [ebp - 0x1224], dx
call fcn.00410560
push 8
xor eax, eax
push 0x423080
lea ecx, [ebp - 0x127c]
mov dword [ebp - 0x1264], edi
mov dword [ebp - 0x1268], ebx
mov word [ebp - 0x1278], ax
call fcn.00410560
lea ecx, [ebp - 0x1244]
push ecx
lea edx, [ebp - 0x1260]
push edx
lea eax, [ebp - 0x127c]
push eax
sub esp, 0x1c
mov ecx, esp
xor edx, edx
lea eax, [ebp - 0x20c]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov word [ecx + 4], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x411465
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00410560
call fcn.00410fb0
mov ecx, dword [ebp - 0x1234]
add esp, 0x28
cmp eax, ebx
je 0x4114b7
mov esi, ecx
sub esi, dword [ebp - 0x1238]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebp - 0x1229], 1
jne 0x4114bd
mov byte [ebp - 0x1229], bl
cmp dword [ebp - 0x1264], 8
jb 0x4114db
mov ecx, dword [ebp - 0x1278]
push ecx
call fcn.004122e7
mov ecx, dword [ebp - 0x1234]
add esp, 4
cmp byte [ebp - 0x1229], bl
je 0x411560
sub ecx, dword [ebp - 0x1238]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x411560
xor edi, edi
cmp esi, eax
jb 0x41150b
call fcn.004127f9
mov edx, dword [ebp - 0x1238]
push 0xffffffffffffffff
push ebx
add edx, edi
push edx
lea ecx, [ebp - 0x1228]
call fcn.0040faa0
push 1
push 0x42307c
lea ecx, [ebp - 0x1228]
call fcn.0040fbc0
mov ecx, dword [ebp - 0x1234]
sub ecx, dword [ebp - 0x1238]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add edi, 0x1c
cmp esi, eax
jb 0x41150b
mov edi, 7
push 0xffe
lea ecx, [ebp - 0x120a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x120c], ax
call fcn.004123b0
mov eax, dword [ebp - 0x1224]
add esp, 0xc
cmp dword [ebp - 0x1210], 8
jae 0x411593
lea eax, [ebp - 0x1224]
push eax
lea edx, [ebp - 0x120c]
push 0x800
push edx
call fcn.00413d0c
xor eax, eax
add esp, 0xc
lea esi, [ebp - 0x120c]
cmp ax, word [ebp - 0x120c]
je 0x4115d9
lea esp, [esp]
movzx ecx, word [esi]
push ecx
call fcn.00413b6a
mov word [esi], ax
add esi, 2
xor edx, edx
add esp, 4
cmp dx, word [esi]
jne 0x4115c0
mov esi, 0x429618
cmp dword [str.chuanqi], ebx
je 0x411607
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x120c]
push eax
call fcn.00412343
add esp, 8
test eax, eax
jne 0x4116f1
add esi, 4
cmp dword [esi], ebx
jne 0x4115e6
cmp dword [ebp - 0x1210], 8
jb 0x41161f
mov ecx, dword [ebp - 0x1224]
push ecx
call fcn.004122e7
add esp, 4
mov eax, dword [ebp - 0x1254]
xor edx, edx
mov dword [ebp - 0x1210], edi
mov dword [ebp - 0x1214], ebx
mov word [ebp - 0x1224], dx
cmp eax, ebx
je 0x411668
mov ecx, dword [ebp - 0x1248]
push ecx
mov ecx, dword [ebp - 0x1250]
lea edx, [ebp - 0x1258]
push edx
push ecx
push eax
call fcn.00410770
mov edx, dword [ebp - 0x1254]
push edx
call fcn.004122e7
add esp, 0x14
mov eax, dword [ebp - 0x1260]
push eax
mov dword [ebp - 0x1254], ebx
mov dword [ebp - 0x1250], ebx
mov dword [ebp - 0x124c], ebx
call fcn.004122e7
mov eax, dword [ebp - 0x1238]
add esp, 4
cmp eax, ebx
je 0x4116bd
mov ecx, dword [ebp - 0x1248]
push ecx
mov ecx, dword [ebp - 0x1234]
lea edx, [ebp - 0x123c]
push edx
push ecx
push eax
call fcn.00410770
mov edx, dword [ebp - 0x1238]
push edx
call fcn.004122e7
add esp, 0x14
mov eax, dword [ebp - 0x1244]
push eax
mov dword [ebp - 0x1238], ebx
mov dword [ebp - 0x1234], ebx
mov dword [ebp - 0x1230], ebx
call fcn.004122e7
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1210], 8
jb 0x411709
mov ecx, dword [ebp - 0x1224]
push ecx
call fcn.004122e7
add esp, 4
mov eax, dword [ebp - 0x1254]
xor edx, edx
mov dword [ebp - 0x1210], edi
mov dword [ebp - 0x1214], ebx
mov word [ebp - 0x1224], dx
cmp eax, ebx
je 0x411752
mov ecx, dword [ebp - 0x1248]
push ecx
mov ecx, dword [ebp - 0x1250]
lea edx, [ebp - 0x1258]
push edx
push ecx
push eax
call fcn.00410770
mov edx, dword [ebp - 0x1254]
push edx
call fcn.004122e7
add esp, 0x14
mov eax, dword [ebp - 0x1260]
push eax
mov dword [ebp - 0x1254], ebx
mov dword [ebp - 0x1250], ebx
mov dword [ebp - 0x124c], ebx
call fcn.004122e7
mov eax, dword [ebp - 0x1238]
add esp, 4
cmp eax, ebx
je 0x4117a7
mov ecx, dword [ebp - 0x1248]
push ecx
mov ecx, dword [ebp - 0x1234]
lea edx, [ebp - 0x123c]
push edx
push ecx
push eax
call fcn.00410770
mov edx, dword [ebp - 0x1238]
push edx
call fcn.004122e7
add esp, 0x14
mov eax, dword [ebp - 0x1244]
push eax
mov dword [ebp - 0x1238], ebx
mov dword [ebp - 0x1234], ebx
mov dword [ebp - 0x1230], ebx
call fcn.004122e7
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004125d9
mov esp, ebp
pop ebp
ret