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

Disassembly:
push 0x8b0
mov eax, 0x101dc5da
call fcn.1005d984
mov esi, ecx
and dword [esi + 0x14], 0
lea eax, [ebp - 0x650]
push 0x208
push 0
xor ebx, ebx
push eax
inc ebx
call fcn.10079740
push 0xa
xor eax, eax
mov dword [ebp - 0x874], 7
and dword [ebp - 0x878], eax
lea edi, [ebp - 0x38]
pop ecx
rep stosd dword es:[edi], eax
mov edi, 0x101e8fac
mov word [ebp - 0x888], ax
push edi
call fcn.1008133f
add esp, 0x10
lea ecx, [ebp - 0x888]
push eax
push edi
call fcn.10002750
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x860], 0
mov edi, 0x101e8fc8
push edi
mov dword [ebp - 0x85c], 7
mov word [ebp - 0x870], ax
call fcn.1008133f
pop ecx
push eax
push edi
lea ecx, [ebp - 0x870]
call fcn.10002750
mov edi, 0x101e8fd0
mov byte [ebp - 4], bl
push edi
call fcn.1008133f
pop ecx
push eax
push edi
lea ecx, [ebp - 0x870]
call fcn.10004340
mov edi, 0x101e8fc8
push edi
call fcn.1008133f
pop ecx
push eax
push edi
lea ecx, [ebp - 0x870]
call fcn.10004340
cmp dword [ebp - 0x874], 8
lea eax, [ebp - 0x888]
push 0xd0
cmovae eax, dword [ebp - 0x888]
push eax
lea eax, [ebp - 0x38]
push str._s_d
push eax
call fcn.10021c4b
cmp dword [ebp - 0x85c], 8
lea eax, [ebp - 0x870]
cmovae eax, dword [ebp - 0x870]
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.1008131d
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.100813e6
add esp, 0x20
lea eax, [ebp - 0x650]
push eax
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 0xf001f
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1002d906
and dword [ebp - 0x88c], eax
lea ecx, [ebp - 0x8bc]
call fcn.10074f1c
mov ebx, 0x10000000
mov byte [ebp - 4], 2
push ebx
push str.Everyone
lea ecx, [ebp - 0x8bc]
call fcn.10074f77
push ebx
push str.ALL_APPLICATION_PACKAGES
lea ecx, [ebp - 0x8bc]
call fcn.10074f77
lea eax, [ebp - 0x650]
push eax
push 0x5afc
push 0
push 4
lea ecx, [ebp - 0x8bc]
call fcn.1007538d
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
push 0xffffffffffffffff
call ebx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1002d8f1
push 0x208
push eax
lea eax, [ebp - 0x858]
push eax
call fcn.10079740
push 0x208
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.10079740
push 0x208
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.10079740
add esp, 0x24
lea eax, [ebp - 0x858]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x38]
push eax
push 0x101e8760
push str.WanNengWBInput
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x448]
push str._s_s_s_s
push eax
call fcn.10021c4b
cmp dword [ebp - 0x85c], 8
lea eax, [ebp - 0x870]
cmovae eax, dword [ebp - 0x870]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1008131d
lea eax, [ebp - 0x240]
push str.TEMP__
push eax
call fcn.100813e6
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.100813e6
add esp, 0x30
lea eax, [ebp - 0x240]
xor ecx, ecx
inc ecx
mov dword [esi + 0x14], ecx
push eax
push ecx
push 0xf001f
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1002d8f1
lea eax, [ebp - 0x240]
push eax
push 1
push 6
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1002d8f1
push eax
push 0x80
push 4
push eax
push 3
push 0x10000000
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002d93a
lea eax, [ebp - 0x240]
push eax
push 0x5afc
push 0
push 4
lea ecx, [ebp - 0x8bc]
call fcn.1007538d
push eax
push edi
call ebx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1002d8ea
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov dword [ebp - 0x890], eax
lea eax, [ebp - 0x38]
push eax
push 0x101e8760
push str.WanNengWBInput
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x448]
push str._s_s_s_s_d
push eax
call fcn.10021c4b
add esp, 0x1c
lea eax, [ebp - 0x448]
push 0
push 0x80
push 4
push 0
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002d93a
push dword [ebp - 0x890]
cmp dword [ebp - 0x85c], 8
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x870]
cmovae ecx, dword [ebp - 0x870]
lea eax, [ebp - 0x240]
push ecx
push str._s_s_d
push eax
call fcn.10021c4b
add esp, 0x14
lea eax, [ebp - 0x240]
lea ecx, [ebp - 0x8bc]
push eax
push 0x5afc
push 0
push 4
call fcn.1007538d
push eax
push edi
call ebx
mov dword [esi + 0xc], eax
test eax, eax
je 0x1002d93a
push 5
push 0
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x8bc]
mov byte [ebp - 4], 1
call fcn.10074f65
mov ebx, dword [ebp - 0x88c]
cmp dword [esi + 0xc], 0
je 0x1002d954
push 0
push 0
push 0
push 0xf001f
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x10], eax
test eax, eax
je 0x1002d947
mov dword [esi + 0x28], eax
test ebx, ebx
jne 0x1002d935
mov ecx, eax
call fcn.1002c87b
xor esi, esi
inc esi
jmp 0x1002d988
lea ecx, [ebp - 0x8bc]
call fcn.10074f65
jmp 0x1002d986
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and dword [esi + 0xc], 0
push 0x5afc
call fcn.1005d5a3
pop ecx
mov dword [ebp - 0x88c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x1002d976
mov ecx, eax
call fcn.1005b400
jmp 0x1002d978
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x28], eax
call fcn.1002c87b
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x870]
call fcn.10002690
push 0
push 1
lea ecx, [ebp - 0x888]
call fcn.10002690
mov eax, esi
call fcn.1005d93f
ret