Function at 0x4082df
Capabilities:
Check if file exists
Copy file
Read .ini file

Disassembly:
mov eax, 0x40a818
call fcn.00408940
sub esp, 0xa50
push ebx
push esi
mov ebx, 0x81
push edi
xor esi, esi
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x23a]
mov word [ebp - 0x23c], si
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x23c]
push eax
call fcn.00408106
pop ecx
xor eax, eax
pop ecx
lea edi, [ebp - 0xa5a]
mov ecx, ebx
mov word [ebp - 0xa5c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0xa5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x23c]
lea ecx, [ebp - 0x10]
push eax
call fcn.00408670
lea eax, [ebp - 0x14]
push 2
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00408719
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004086c9
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040329c
mov edi, str.360SANDBOXSHADOW
mov eax, edi
test eax, eax
je 0x408395
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.004045d8
lea eax, [ebp - 0x238]
test eax, eax
je 0x4083b6
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x238]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004045d8
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
je 0x4083e6
lea eax, [ebp - 0x23c]
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x23c]
push eax
call ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], eax
test eax, eax
mov esi, str.Option
je 0x408446
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [ebp - 0x23c]
push eax
push 0
push str.BossKey
push esi
call edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x23c]
push eax
push 0
push str.EnableBSK
push esi
call edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x23c]
push eax
push 0
push str.EnableMBSK
push esi
call edi
mov dword [ebp - 0x14], eax
and word [ebp - 0x64c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x64a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x64c]
push 0x104
push eax
call fcn.004080bc
pop ecx
lea eax, [ebp - 0x64c]
pop ecx
push 0x40e824
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x64c]
push eax
call ebx
test eax, eax
je 0x4084a7
lea eax, [ebp - 0x23c]
push 0
push eax
lea eax, [ebp - 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x20], 0
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
je 0x408527
and word [ebp - 0x34], 0
xor eax, eax
lea edi, [ebp - 0x32]
push 0xa
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll__itow]
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x34]
push eax
push str.BossKey
push esi
call ebx
cmp dword [ebp - 0x18], 0
mov edi, 0x40e820
mov eax, 0x40e7dc
jne 0x4084fa
mov eax, edi
lea ecx, [ebp - 0x23c]
push ecx
push eax
push str.EnableBSK
push esi
call ebx
cmp dword [ebp - 0x14], 0
mov eax, 0x40e7dc
jne 0x408517
mov eax, edi
lea ecx, [ebp - 0x23c]
push ecx
push eax
push str.EnableMBSK
push esi
call ebx
and word [ebp - 0x444], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x442]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004065c6
mov ecx, eax
call fcn.004065fb
test eax, eax
je 0x4085e5
mov esi, 0x104
lea eax, [ebp - 0x444]
push esi
push eax
call fcn.004065c6
mov ecx, eax
call fcn.004066f0
test eax, eax
je 0x4085e5
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4085e5
and word [ebp - 0x854], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x852]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x444]
push str.360SE.ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x444]
mov edi, str.FAVBARPATH
push eax
lea eax, [ebp - 0x854]
push esi
push eax
push 0x411c2c
mov esi, 0x40ef9c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x854]
push eax
push edi
push esi
call ebx
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040329c
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret