Function at 0x100a74e9
Capabilities:
Check if file exists
Create directory
Get common file path
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bed5a
mov eax, dword fs:[0]
push eax
sub esp, 0x570
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x554], ecx
mov dword [ebp - 0x28], 1
push 0x44
push 0
lea eax, [ebp - 0x4a4]
push eax
call fcn.10071b30
add esp, 0xc
mov dword [ebp - 0x4a4], 0x44
mov dword [ebp - 0x478], 0x80
push 0x10
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.10071b30
add esp, 0xc
lea ecx, [ebp - 0x45c]
call fcn.1003c548
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.1001e01d
mov byte [ebp - 4], 1
and word [ebp - 0x44c], 0
push 0x208
push 0
lea eax, [ebp - 0x44a]
push eax
call fcn.10071b30
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Q3Dll
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x10]
push eax
call fcn.100b24a4
pop ecx
mov byte [ebp - 4], 2
push 0x100d1894
lea ecx, [ebp - 0x10]
call fcn.10009fbf
lea ecx, [ebp - 0x10]
call fcn.1000ba55
push eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100a7629
push 0
push 0x100d18a0
lea eax, [ebp - 0x44c]
push eax
push 0xde
push dword [0x10109260]
call fcn.100a51dd
add esp, 0x14
cmp dword [ebp - 0x28], 0
je 0x100a764c
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a764c
mov dword [ebp - 0x558], 1
jmp 0x100a7653
and dword [ebp - 0x558], 0
mov eax, dword [ebp - 0x558]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x100a7677
push 0x82
mov ecx, dword [ebp - 0x554]
call fcn.100a1d60
jmp 0x100a7a50
mov ecx, dword [ebp - 0x554]
add ecx, 0x44
call fcn.1000ba55
mov dword [ebp - 0x55c], eax
push 0
push 0x100d18b4
push dword [ebp - 0x55c]
mov eax, dword [ebp - 0x55c]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 0x4a8], eax
mov ecx, dword [ebp - 0x554]
add ecx, 0x44
call fcn.1000ba55
mov dword [ebp - 0x560], eax
push 0x100cd9f5
lea ecx, [ebp - 0x14]
call fcn.10039cd5
push eax
push str.DetourTargetProc
push dword [ebp - 0x560]
mov eax, dword [ebp - 0x560]
mov eax, dword [eax]
call dword [eax + 0x14]
and word [ebp - 0x23c], 0
push 0x208
push 0
lea eax, [ebp - 0x23a]
push eax
call fcn.10071b30
add esp, 0xc
and dword [ebp - 0x28], 0
lea ecx, [ebp - 0x14]
call fcn.1000ba55
push eax
lea ecx, [ebp - 0x4c4]
call fcn.10003b53
mov dword [ebp - 0x564], eax
mov eax, dword [ebp - 0x564]
mov dword [ebp - 0x568], eax
mov byte [ebp - 4], 3
push 0
push 0x2c
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x568]
call fcn.100b2062
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c4]
call fcn.10010769
and dword [ebp - 0x4ac], 0
jmp 0x100a776b
mov eax, dword [ebp - 0x4ac]
inc eax
mov dword [ebp - 0x4ac], eax
lea ecx, [ebp - 0x45c]
call fcn.1003b569
cmp dword [ebp - 0x4ac], eax
jae 0x100a78bc
and dword [ebp - 0x4b4], 0
push dword [ebp - 0x4ac]
lea ecx, [ebp - 0x45c]
call fcn.1004318f
push eax
lea ecx, [ebp - 0x4b0]
call fcn.10003b3a
mov byte [ebp - 4], 4
push 0
push 0x100d18d4
lea ecx, [ebp - 0x4b0]
call fcn.10010870
mov dword [ebp - 0x4b8], eax
cmp dword [ebp - 0x4b8], 0
jl 0x100a782f
push str.x64:
call fcn.10071ffb
pop ecx
add eax, dword [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4c8]
push eax
lea ecx, [ebp - 0x4b0]
call fcn.10024be3
mov dword [ebp - 0x56c], eax
mov eax, dword [ebp - 0x56c]
mov dword [ebp - 0x570], eax
mov byte [ebp - 4], 5
push dword [ebp - 0x570]
lea ecx, [ebp - 0x4b0]
call fcn.10003bbe
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c8]
call fcn.10010769
mov dword [ebp - 0x4b4], 1
call fcn.100b1652
test eax, eax
je 0x100a7855
cmp dword [ebp - 0x4b4], 0
je 0x100a7855
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4b0]
call fcn.10010769
jmp 0x100a775e
push 0x104
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x4a8]
lea ecx, [ebp - 0x4b0]
call fcn.1000ba55
push eax
call fcn.100b262d
add esp, 0x10
test eax, eax
je 0x100a78a8
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a78a8
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4b0]
call fcn.10010769
jmp 0x100a78bc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4b0]
call fcn.10010769
jmp 0x100a775e
cmp dword [ebp - 0x28], 0
je 0x100a791d
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x54c]
call fcn.10038cc2
mov dword [ebp - 0x574], eax
push 0
mov ecx, dword [ebp - 0x574]
call fcn.1000ba55
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4a4]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x23c]
push eax
push 0
call fcn.1006fe60
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x54c]
call fcn.10010c1f
jmp 0x100a7932
push 0x83
mov ecx, dword [ebp - 0x554]
call fcn.100a1d60
jmp 0x100a7a50
cmp dword [ebp - 0x28], 0
je 0x100a7a28
cmp dword [ebp - 0x28], 0
je 0x100a7963
push dword [ebp + 8]
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x554]
call fcn.100a3d22
test eax, eax
je 0x100a7963
mov dword [ebp - 0x578], 1
jmp 0x100a796a
and dword [ebp - 0x578], 0
mov eax, dword [ebp - 0x578]
mov dword [ebp - 0x28], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x28], 0
je 0x100a798d
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x1f40
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x554]
add ecx, 0x44
call fcn.1000ba55
mov dword [ebp - 0x57c], eax
push 0
push str.ModuleType
push dword [ebp - 0x57c]
mov eax, dword [ebp - 0x57c]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 0x4bc], 0x11
cmp dword [ebp - 0x4bc], 0
je 0x100a7a26
mov ecx, 0x10109a08
call fcn.1003ddcc
mov dword [ebp - 0x4c0], eax
cmp dword [ebp - 0x4c0], 0
jne 0x100a79fc
and dword [ebp - 0x28], 0
jmp 0x100a7a0e
mov eax, dword [ebp - 0x4c0]
cmp dword [eax], 1
jne 0x100a7a0e
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0
jne 0x100a7a26
push 0x86
mov ecx, dword [ebp - 0x554]
call fcn.100a1d60
jmp 0x100a7a50
jmp 0x100a7a3a
push 0x84
mov ecx, dword [ebp - 0x554]
call fcn.100a1d60
jmp 0x100a7a50
cmp dword [ebp - 0x28], 0
jne 0x100a7a50
push 0x85
mov ecx, dword [ebp - 0x554]
call fcn.100a1d60
cmp dword [ebp - 0x28], 0
jne 0x100a7a67
cmp dword [ebp - 0x24], 0
je 0x100a7a67
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 0x24], 0
je 0x100a7a88
push 0xbb8
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x20], 0
je 0x100a7a9b
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x550], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.10010769
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.1000aabd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45c]
call fcn.1003c56f
mov eax, dword [ebp - 0x550]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.10071b1a
leave
ret 4