Function at 0x100948de
Capabilities:
Check if file exists
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4d08
mov eax, dword fs:[0]
push eax
sub esp, 0x6a4
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x694], ecx
mov dword [ebp - 0x438], 1
and dword [ebp - 0x650], 0
and dword [ebp - 0x654], 0
and word [ebp - 0x434], 0
push 0x208
push 0
lea eax, [ebp - 0x432]
push eax
call fcn.10071bc0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x434]
push eax
push dword [ebp + 8]
push str._temp_RandomSubPathTag_
call fcn.100a8b29
add esp, 0x10
and word [ebp - 0x224], 0
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.10071bc0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x224]
push eax
push dword [0x100fd2ec]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea eax, [ebp - 0x434]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
and word [ebp - 0x64c], 0
push 0x208
push 0
lea eax, [ebp - 0x64a]
push eax
call fcn.10071bc0
add esp, 0xc
lea eax, [ebp - 0x64c]
push eax
push 0
push 0x100c4910
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp dword [ebp - 0x438], 0
je 0x10094a08
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10094a08
mov dword [ebp - 0x698], 1
jmp 0x10094a0f
and dword [ebp - 0x698], 0
mov eax, dword [ebp - 0x698]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x10094a4a
push 0
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10094a4a
mov dword [ebp - 0x69c], 1
jmp 0x10094a51
and dword [ebp - 0x69c], 0
mov eax, dword [ebp - 0x69c]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x10094b3e
lea eax, [ebp - 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x658], eax
cmp dword [ebp - 0x438], 0
je 0x10094a9b
cmp dword [ebp - 0x658], 0
je 0x10094a9b
mov dword [ebp - 0x6a0], 1
jmp 0x10094aa2
and dword [ebp - 0x6a0], 0
mov eax, dword [ebp - 0x6a0]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x10094ae3
push 0x100c4914
push dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x650], eax
cmp dword [ebp - 0x650], 0
je 0x10094ae3
mov dword [ebp - 0x6a4], 1
jmp 0x10094aea
and dword [ebp - 0x6a4], 0
mov eax, dword [ebp - 0x6a4]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x10094b2b
push 0x100c4920
push dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x654], eax
cmp dword [ebp - 0x654], 0
je 0x10094b2b
mov dword [ebp - 0x6a8], 1
jmp 0x10094b32
and dword [ebp - 0x6a8], 0
mov eax, dword [ebp - 0x6a8]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x10094dbc
mov eax, dword [ebp - 0x694]
add eax, 0x14
push eax
lea ecx, [ebp - 0x664]
call fcn.10003b82
and dword [ebp - 4], 0
lea ecx, [ebp - 0x668]
call fcn.10003b68
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x660]
call fcn.10003b68
mov byte [ebp - 4], 2
push 0
push 0x100c4938
mov eax, dword [ebp - 0x694]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x694]
mov ecx, dword [ecx + 0x10]
mov eax, dword [eax]
push ecx
call dword [eax + 0x18]
mov dword [ebp - 0x65c], eax
push dword [ebp - 0x65c]
push 0x100c4944
lea eax, [ebp - 0x668]
push eax
call fcn.10015e00
add esp, 0xc
push dword [ebp + 0xc]
push 0x100c4950
lea eax, [ebp - 0x660]
push eax
call fcn.10015e00
add esp, 0xc
lea ecx, [ebp - 0x660]
call fcn.1003c888
push eax
lea ecx, [ebp - 0x668]
call fcn.1003c888
push eax
lea ecx, [ebp - 0x664]
call fcn.10023f8b
push 1
lea eax, [ebp - 0x688]
push eax
lea ecx, [ebp - 0x664]
call fcn.1003f315
mov dword [ebp - 0x6ac], eax
push 0x100c495c
push dword [ebp - 0x6ac]
call fcn.10037599
pop ecx
pop ecx
mov byte [ebp - 0x681], al
lea ecx, [ebp - 0x688]
call fcn.10003c06
movzx eax, byte [ebp - 0x681]
test eax, eax
je 0x10094c53
push 0x100c4960
lea ecx, [ebp - 0x664]
call fcn.10009de9
push 0
push 0x100c4964
lea ecx, [ebp - 0x664]
call fcn.100104c3
test eax, eax
jge 0x10094c9a
push dword [ebp - 0x65c]
push 0x100c4980
push 0x100c499c
lea eax, [ebp - 0x668]
push eax
call fcn.10015e00
add esp, 0x10
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x664]
call fcn.1003f2fc
push 1
lea eax, [ebp - 0x690]
push eax
lea ecx, [ebp - 0x664]
call fcn.1003f315
mov dword [ebp - 0x6b0], eax
push 0x100c49ac
push dword [ebp - 0x6b0]
call fcn.10037599
pop ecx
pop ecx
mov byte [ebp - 0x689], al
lea ecx, [ebp - 0x690]
call fcn.10003c06
movzx eax, byte [ebp - 0x689]
test eax, eax
je 0x10094cf2
push 0x100c49b0
lea ecx, [ebp - 0x664]
call fcn.10009de9
push 0
push 0x100c49b4
lea ecx, [ebp - 0x664]
call fcn.100104c3
test eax, eax
jge 0x10094d35
push 1
push 0x100c49cc
push 0x100c49e4
lea eax, [ebp - 0x668]
push eax
call fcn.10015e00
add esp, 0x10
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x664]
call fcn.1003f2fc
and dword [ebp - 0x680], 0
xor eax, eax
lea edi, [ebp - 0x67c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x680], 0x14
mov eax, dword [ebp - 0x65c]
mov dword [ebp - 0x678], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x680]
push eax
call dword [ebp - 0x654]
lea ecx, [ebp - 0x664]
call fcn.1003c888
push eax
call dword [ebp - 0x650]
mov dword [ebp - 0x66c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x660]
call fcn.10003c06
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x668]
call fcn.10003c06
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x664]
call fcn.10003c06
mov eax, dword [ebp - 0x438]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006ef21
leave
ret 8