Function at 0x1003a572
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
sub esp, 0x864
lea ebp, [esp - 4]
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x864], eax
push 0x24
mov eax, 0x1016d5d2
call fcn.10075e22
xor ebx, ebx
push 0x206
lea eax, [ebp + 0x226]
mov esi, ecx
push ebx
push eax
mov dword [esi + 0x14], ebx
mov dword [ebp - 0x14], 1
mov word [ebp + 0x224], bx
call fcn.10076580
add esp, 0xc
push 9
pop ecx
mov word [ebp + 0x83c], bx
xor eax, eax
lea edi, [ebp + 0x83e]
rep stosd dword es:[edi], eax
push 0x1017dd30
lea ecx, [ebp - 0x30]
stosw word es:[edi], ax
call fcn.10001580
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 4], ebx
call fcn.100201b9
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.10001770
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x1003a610
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x83c]
push 0x10175610
push eax
call fcn.100048d5
lea eax, [ebp + 0x224]
push str.__smartcloud__
push eax
call fcn.10076a8d
lea eax, [ebp + 0x83c]
push eax
lea eax, [ebp + 0x224]
push eax
call fcn.10076a63
add esp, 0x1c
lea eax, [ebp + 0x224]
push eax
push 1
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x1003a8bb
lea eax, [ebp + 0x224]
push eax
push 0x5a54
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x1003a8bb
mov edi, 0x206
push edi
lea eax, [ebp + 0x1e]
push ebx
push eax
mov word [ebp + 0x1c], bx
call fcn.10076580
push edi
lea eax, [ebp + 0x42e]
push ebx
push eax
mov word [ebp + 0x42c], bx
call fcn.10076580
push edi
lea eax, [ebp + 0x636]
push ebx
push eax
mov word [ebp + 0x634], bx
call fcn.10076580
add esp, 0x24
lea eax, [ebp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x83c]
push eax
push 0x10174190
push str.SmartCloudInput
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x42c]
push str._s_s_s_s
push eax
call fcn.100048d5
lea eax, [ebp + 0x634]
push str.__smartcloud__
push eax
call fcn.10076a8d
lea eax, [ebp + 0x634]
push str.TEMP__
push eax
call fcn.10076a63
lea eax, [ebp + 0x83c]
push eax
lea eax, [ebp + 0x634]
push eax
call fcn.10076a63
mov edi, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
add esp, 0x30
xor eax, eax
lea ecx, [ebp + 0x634]
inc eax
push ecx
push eax
push 0xf001f
mov dword [esi + 0x14], eax
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x1003a8bb
lea eax, [ebp + 0x634]
push eax
push 1
push 6
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x1003a8bb
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 4
push ebx
push 3
push 0x10000000
lea eax, [ebp + 0x42c]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1003a7d1
push ebx
push 1
lea ecx, [ebp]
call fcn.100017f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x864]
xor ecx, ebp
call fcn.10075e13
add ebp, 0x868
leave
ret
lea ecx, [ebp + 0x634]
push ecx
push 0x5a54
push ebx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x1003a8b2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x83c]
push eax
push 0x10174190
push str.SmartCloudInput
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x42c]
push str._s_s_s_s_d
push eax
call fcn.100048d5
add esp, 0x1c
push ebx
push 0x80
push 4
push ebx
push 3
push 0x10000000
lea eax, [ebp + 0x42c]
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x1003a7a1
push dword [ebp - 0x10]
lea eax, [ebp + 0x83c]
push eax
push str.__smartcloud__
lea eax, [ebp + 0x634]
push str._s_s_d
push eax
call fcn.100048d5
add esp, 0x14
lea eax, [ebp + 0x634]
push eax
push 0x5a54
push ebx
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x1003a89f
xor esi, esi
push ebx
push 1
lea ecx, [ebp]
call fcn.100017f0
mov eax, esi
jmp 0x1003a7ae
push 5
push ebx
lea eax, [ebp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
jmp 0x1003a8b5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1003a8f8
push ebx
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x1003a8ec
cmp dword [ebp - 0x14], ebx
mov dword [esi + 0x28], eax
jne 0x1003a8e7
mov ecx, eax
call fcn.10038384
xor esi, esi
inc esi
jmp 0x1003a88d
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], ebx
push 0x5a54
call fcn.10052ae7
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x1003a917
mov ecx, eax
call fcn.100237f8
jmp 0x1003a919
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [esi + 0x28], eax
call fcn.10038384
jmp 0x1003a88b