Function at 0x10001650
Capabilities:
Copy file
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x1001b34c
mov eax, dword fs:[0]
push eax
mov eax, 0x4c48
call fcn.10019680
mov eax, dword [0x100221c0]
xor eax, esp
mov dword [esp + 0x4c44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100221c0]
xor eax, esp
push eax
lea eax, [esp + 0x4c5c]
mov dword fs:[0], eax
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x84e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x854], ax
call fcn.1000d630
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0xc
push 0x104
lea edx, [esp + 0x84c]
push edx
push 0x10000000
call ebp
test eax, eax
je 0x10001a26
lea edi, [esp + 0x18]
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.100011c0
push 0x208
lea eax, [esp + 0x644]
push ebx
push eax
call fcn.1000d630
add esp, 0xc
push 0x104
lea ecx, [esp + 0x644]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x208
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.1000d630
add esp, 0xc
cmp dword [esp + 0x14], 6
lea ebx, [esp + 0x28]
jb 0x1000173f
movzx eax, word [esp + 0x640]
push eax
push str._C:UsersDefaultAppDataLocalTemp
jmp 0x1000174d
movzx ecx, word [esp + 0x640]
push ecx
push str._C:Documents_and_SettingsDefault_UserLocal_SettingsTemp
mov ecx, 0x104
call fcn.100024a0
add esp, 8
lea edx, [esp + 0x28]
push edx
xor ebx, ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x208
lea eax, [esp + 0x234]
push ebx
push eax
call fcn.1000d630
add esp, 0xc
push 0x104
lea ecx, [esp + 0x234]
push ecx
push 0x10000000
call ebp
lea edx, [esp + 0x230]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360OptExt.ini
lea eax, [esp + 0x234]
push eax
call ebp
push 0x4000
lea ecx, [esp + 0xc5c]
push ebx
push ecx
call fcn.1000d630
add esp, 0xc
lea edx, [esp + 0x230]
push edx
push 0x2000
lea eax, [esp + 0xc60]
push eax
push 0x1001e9e8
push str.items
push str.360cSVC
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x10001a26
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x1001eb48
call fcn.10002980
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xc5c]
mov dword [esp + 0x4c68], ebx
call fcn.10002980
push 0x10024588
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x4c70], 1
call fcn.100044f0
mov byte [esp + 0x4c70], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000186a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4c64], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001895
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [0x10024598]
sub esi, dword [0x10024594]
sar esi, 2
cmp esi, ebx
jbe 0x10001a26
push 0x206
lea edx, [esp + 0x43e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x444], cx
call fcn.1000d630
push 0x206
lea ecx, [esp + 0xa62]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xa68], ax
call fcn.1000d630
lea edi, [esi - 1]
add esp, 0x18
cmp edi, esi
jb 0x100018f5
call fcn.1000c7dc
mov edx, dword [0x10024594]
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x438]
call fcn.10002440
lea eax, [esp + 0x438]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10001914
sub eax, edx
lea ecx, [esp + 0xa50]
push ecx
sar eax, 1
push eax
lea edx, [esp + 0x440]
push edx
call fcn.10001020
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xa54]
call fcn.10002980
lea ecx, [esp + 0x24]
push ecx
mov ecx, str..dll
mov dword [esp + 0x4c68], 2
call fcn.10002980
push eax
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x1c]
mov byte [esp + 0x4c6c], 3
call fcn.10001a70
mov byte [esp + 0x4c6c], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100019a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
call ebp
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x850]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100019db
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
call fcn.100030d0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100019fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4c64], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001a26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x4c5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c44]
xor ecx, esp
call fcn.1000c28b
add esp, 0x4c54
ret