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

Disassembly:
push 0xffffffffffffffff
push 0x1001baf7
mov eax, dword fs:[0]
push eax
mov eax, 0x4c48
call fcn.10019dc0
mov eax, dword [0x100241c0]
xor eax, esp
mov dword [esp + 0x4c44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100241c0]
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.1000de40
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 0x10001c1e
lea edi, [esp + 0x18]
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.100013b0
push 0x208
lea eax, [esp + 0x644]
push ebx
push eax
call fcn.1000de40
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.1000de40
add esp, 0xc
cmp dword [esp + 0x14], 6
lea ebx, [esp + 0x28]
jb 0x1000192f
movzx eax, word [esp + 0x640]
push eax
push str._C:UsersDefaultAppDataLocalTemp
jmp 0x1000193d
movzx ecx, word [esp + 0x640]
push ecx
push str._C:Documents_and_SettingsDefault_UserLocal_SettingsTemp
mov ecx, 0x104
call fcn.10002680
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.1000de40
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.1000de40
add esp, 0xc
lea edx, [esp + 0x230]
push edx
push 0x2000
lea eax, [esp + 0xc60]
push eax
push 0x10020478
push str.items
push str.360CsVc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x10001c1e
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x100206f8
call fcn.10002b80
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xc5c]
mov dword [esp + 0x4c68], ebx
call fcn.10002b80
push 0x100266c0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x4c70], 1
call fcn.10004c30
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 0x10001a5a
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 0x10001a85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [0x100266d0]
sub esi, dword [0x100266cc]
sar esi, 2
cmp esi, ebx
jbe 0x10001c1e
push 0x206
lea edx, [esp + 0x43e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x444], cx
call fcn.1000de40
push 0x206
lea ecx, [esp + 0xa62]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xa68], ax
call fcn.1000de40
lea edi, [esi - 1]
add esp, 0x18
cmp edi, esi
jb 0x10001ae5
call fcn.1000cfec
mov edx, dword [0x100266cc]
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x438]
call fcn.10002620
lea eax, [esp + 0x438]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10001b04
sub eax, edx
lea ecx, [esp + 0xa50]
push ecx
sar eax, 1
push eax
lea edx, [esp + 0x440]
push edx
call fcn.10001210
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xa54]
call fcn.10002b80
lea ecx, [esp + 0x24]
push ecx
mov ecx, str..dll
mov dword [esp + 0x4c68], 2
call fcn.10002b80
push eax
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x1c]
mov byte [esp + 0x4c6c], 3
call fcn.10001c70
add esp, 8
mov byte [esp + 0x4c64], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001b99
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 0x10001bcb
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
call fcn.100035b0
mov byte [esp + 0x4c64], 2
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 0x10001bf3
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 0x10001c1e
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.1000c9cb
add esp, 0x4c54
ret