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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd16c
mov eax, dword fs:[0]
push eax
sub esp, 0x6b8
mov eax, dword [0x100ee3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6a0], ecx
call fcn.1005c404
movzx eax, al
test eax, eax
je 0x10099357
push str.begine_InProcsecin
push 0xd2
push 0x100cf4c0
call fcn.1005c293
add esp, 0xc
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.10074c40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x434]
push eax
push dword [ebp + 8]
push str._temp_RandomSubPathTag_
call fcn.100b0b33
add esp, 0x10
and word [ebp - 0x224], 0
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.10074c40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x224]
push eax
push dword [0x1010a390]
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.10074c40
add esp, 0xc
lea eax, [ebp - 0x64c]
push eax
push 0
push 0x100cf554
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp dword [ebp - 0x438], 0
je 0x1009944f
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1009944f
mov dword [ebp - 0x6a4], 1
jmp 0x10099456
and dword [ebp - 0x6a4], 0
mov eax, dword [ebp - 0x6a4]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x10099491
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 0x10099491
mov dword [ebp - 0x6a8], 1
jmp 0x10099498
and dword [ebp - 0x6a8], 0
mov eax, dword [ebp - 0x6a8]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x10099585
lea eax, [ebp - 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x658], eax
cmp dword [ebp - 0x438], 0
je 0x100994e2
cmp dword [ebp - 0x658], 0
je 0x100994e2
mov dword [ebp - 0x6ac], 1
jmp 0x100994e9
and dword [ebp - 0x6ac], 0
mov eax, dword [ebp - 0x6ac]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x1009952a
push 0x100cf558
push dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x650], eax
cmp dword [ebp - 0x650], 0
je 0x1009952a
mov dword [ebp - 0x6b0], 1
jmp 0x10099531
and dword [ebp - 0x6b0], 0
mov eax, dword [ebp - 0x6b0]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x10099572
push 0x100cf564
push dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x654], eax
cmp dword [ebp - 0x654], 0
je 0x10099572
mov dword [ebp - 0x6b4], 1
jmp 0x10099579
and dword [ebp - 0x6b4], 0
mov eax, dword [ebp - 0x6b4]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x100999cb
mov eax, dword [ebp - 0x6a0]
add eax, 0x14
push eax
lea ecx, [ebp - 0x66c]
call fcn.10003b40
and dword [ebp - 4], 0
lea ecx, [ebp - 0x674]
call fcn.10010607
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x668]
call fcn.10010607
mov byte [ebp - 4], 2
push 0x100cf57c
lea ecx, [ebp - 0x65c]
call fcn.10003b59
mov byte [ebp - 4], 3
push 0x100cf594
lea ecx, [ebp - 0x670]
call fcn.10003b59
mov byte [ebp - 4], 4
push 0
push 0x100cf5ac
mov eax, dword [ebp - 0x6a0]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x6a0]
mov ecx, dword [ecx + 0x10]
mov eax, dword [eax]
push ecx
call dword [eax + 0x18]
mov dword [ebp - 0x664], eax
push dword [ebp - 0x664]
push 0x100cf5b8
lea eax, [ebp - 0x674]
push eax
call fcn.10015ed2
add esp, 0xc
push dword [ebp + 0xc]
push 0x100cf5c4
lea eax, [ebp - 0x668]
push eax
call fcn.10015ed2
add esp, 0xc
lea ecx, [ebp - 0x668]
call fcn.100348a0
push eax
lea ecx, [ebp - 0x674]
call fcn.100348a0
push eax
lea ecx, [ebp - 0x66c]
call fcn.100240d8
lea ecx, [ebp - 0x670]
call fcn.100348a0
push eax
lea ecx, [ebp - 0x65c]
call fcn.100348a0
push eax
lea ecx, [ebp - 0x66c]
call fcn.100240d8
push 1
lea eax, [ebp - 0x680]
push eax
lea ecx, [ebp - 0x66c]
call fcn.10041505
mov dword [ebp - 0x6b8], eax
push 0x100cf5d0
push dword [ebp - 0x6b8]
call fcn.100375a7
pop ecx
pop ecx
mov byte [ebp - 0x679], al
lea ecx, [ebp - 0x680]
call fcn.100106a5
movzx eax, byte [ebp - 0x679]
test eax, eax
je 0x100996e5
push 0x100cf5d4
lea ecx, [ebp - 0x66c]
call fcn.10009fcd
push 0
push 0x100cf5d8
lea ecx, [ebp - 0x66c]
call fcn.10010798
test eax, eax
jge 0x1009972c
push dword [ebp - 0x664]
push 0x100cf5f4
push 0x100cf610
lea eax, [ebp - 0x674]
push eax
call fcn.10015ed2
add esp, 0x10
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x66c]
call fcn.100414ec
push 1
lea eax, [ebp - 0x688]
push eax
lea ecx, [ebp - 0x66c]
call fcn.10041505
mov dword [ebp - 0x6bc], eax
push 0x100cf620
push dword [ebp - 0x6bc]
call fcn.100375a7
pop ecx
pop ecx
mov byte [ebp - 0x681], al
lea ecx, [ebp - 0x688]
call fcn.100106a5
movzx eax, byte [ebp - 0x681]
test eax, eax
je 0x10099784
push 0x100cf624
lea ecx, [ebp - 0x66c]
call fcn.10009fcd
push 0
push 0x100cf628
lea ecx, [ebp - 0x66c]
call fcn.10010798
test eax, eax
jge 0x100997c7
push 1
push 0x100cf640
push 0x100cf658
lea eax, [ebp - 0x674]
push eax
call fcn.10015ed2
add esp, 0x10
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x66c]
call fcn.100414ec
push 1
lea eax, [ebp - 0x690]
push eax
lea ecx, [ebp - 0x66c]
call fcn.10041505
mov dword [ebp - 0x6c0], eax
push 0x100cf664
push dword [ebp - 0x6c0]
call fcn.100375a7
pop ecx
pop ecx
mov byte [ebp - 0x689], al
lea ecx, [ebp - 0x690]
call fcn.100106a5
movzx eax, byte [ebp - 0x689]
test eax, eax
je 0x1009981f
push 0x100cf668
lea ecx, [ebp - 0x66c]
call fcn.10009fcd
push 0
push 0x100cf66c
lea ecx, [ebp - 0x66c]
call fcn.10010798
test eax, eax
jge 0x10099866
push dword [ebp - 0x664]
push 0x100cf688
push 0x100cf6a4
lea eax, [ebp - 0x674]
push eax
call fcn.10015ed2
add esp, 0x10
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x66c]
call fcn.100414ec
push 0x80c
call fcn.10071ce7
pop ecx
mov dword [ebp - 0x698], eax
cmp dword [ebp - 0x698], 0
je 0x10099893
mov ecx, dword [ebp - 0x698]
call fcn.1004143f
mov dword [ebp - 0x6c4], eax
jmp 0x1009989a
and dword [ebp - 0x6c4], 0
mov eax, dword [ebp - 0x6c4]
mov dword [ebp - 0x694], eax
mov eax, dword [ebp - 0x694]
mov dword [ebp - 0x660], eax
push 0x14
call fcn.10071ce7
pop ecx
mov dword [ebp - 0x69c], eax
mov eax, dword [ebp - 0x660]
mov ecx, dword [ebp - 0x69c]
mov dword [eax], ecx
push 0x14
push 0
mov eax, dword [ebp - 0x660]
push dword [eax]
call fcn.10074c40
add esp, 0xc
mov eax, dword [ebp - 0x660]
mov eax, dword [eax]
mov dword [eax], 0x14
mov eax, dword [ebp - 0x660]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x664]
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x660]
mov ecx, dword [ecx]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x660]
mov ecx, dword [ebp - 0x654]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x660]
mov ecx, dword [ebp - 0x650]
mov dword [eax + 8], ecx
push 0x3ff
lea ecx, [ebp - 0x66c]
call fcn.100348a0
push eax
mov eax, dword [ebp - 0x660]
add eax, 0xc
push eax
call fcn.100752b3
add esp, 0xc
push 0
push 0
push dword [ebp - 0x660]
push 0x100989a3
push 0
push 0
call fcn.10075573
add esp, 0x18
mov dword [ebp - 0x678], eax
push dword [ebp - 0x678]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x670]
call fcn.100106a5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x65c]
call fcn.100106a5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x668]
call fcn.100106a5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x674]
call fcn.100106a5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x66c]
call fcn.100106a5
mov eax, dword [ebp - 0x438]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071fa1
leave
ret 8