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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4f01
mov eax, dword fs:[0]
push eax
sub esp, 0x564
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54c], ecx
mov dword [ebp - 0x24], 1
push 0x44
push 0
lea eax, [ebp - 0x4a4]
push eax
call fcn.10071bb0
add esp, 0xc
mov dword [ebp - 0x4a4], 0x44
mov dword [ebp - 0x478], 0x80
push 0x10
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.10071bb0
add esp, 0xc
lea ecx, [ebp - 0x45c]
call fcn.1003ca89
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10023593
mov byte [ebp - 4], 1
and word [ebp - 0x44c], 0
push 0x208
push 0
lea eax, [ebp - 0x44a]
push eax
call fcn.10071bb0
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.QMDll
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]
push str.QMBrigeDll.dll
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 0x1009f97c
push 0
push 0x100c64c4
lea eax, [ebp - 0x44c]
push eax
push 0xde
push dword [0x100fd2ec]
call fcn.1009e4aa
add esp, 0x14
cmp dword [ebp - 0x24], 0
je 0x1009f99f
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1009f99f
mov dword [ebp - 0x550], 1
jmp 0x1009f9a6
and dword [ebp - 0x550], 0
mov eax, dword [ebp - 0x550]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1009f9ca
push 0x82
mov ecx, dword [ebp - 0x54c]
call fcn.1009bbca
jmp 0x1009fcf8
mov ecx, dword [ebp - 0x54c]
add ecx, 0x44
call fcn.10010f80
mov dword [ebp - 0x554], eax
push 0
push 0x100c64d8
push dword [ebp - 0x554]
mov eax, dword [ebp - 0x554]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 0x4a8], eax
mov ecx, dword [ebp - 0x54c]
add ecx, 0x44
call fcn.10010f80
mov dword [ebp - 0x558], eax
push 0x100c274b
lea ecx, [ebp - 0x10]
call fcn.10039cae
push eax
push str.DetourTargetProc
push dword [ebp - 0x558]
mov eax, dword [ebp - 0x558]
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.10071bb0
add esp, 0xc
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x10]
call fcn.10010f80
push eax
lea ecx, [ebp - 0x4bc]
call fcn.10003df2
mov dword [ebp - 0x55c], eax
mov eax, dword [ebp - 0x55c]
mov dword [ebp - 0x560], eax
mov byte [ebp - 4], 2
push 0
push 0x2c
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x560]
call fcn.100a8766
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4bc]
call fcn.10003e5d
and dword [ebp - 0x4ac], 0
jmp 0x1009fabe
mov eax, dword [ebp - 0x4ac]
inc eax
mov dword [ebp - 0x4ac], eax
lea ecx, [ebp - 0x45c]
call fcn.1003e2e9
cmp dword [ebp - 0x4ac], eax
jae 0x1009fc0f
and dword [ebp - 0x4b4], 0
push dword [ebp - 0x4ac]
lea ecx, [ebp - 0x45c]
call fcn.1003cab0
push eax
lea ecx, [ebp - 0x4b0]
call fcn.10003dd9
mov byte [ebp - 4], 3
push 0
push 0x100c64f8
lea ecx, [ebp - 0x4b0]
call fcn.10010983
mov dword [ebp - 0x4b8], eax
cmp dword [ebp - 0x4b8], 0
jl 0x1009fb82
push str.x64:
call fcn.1006eefb
pop ecx
add eax, dword [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4c0]
push eax
lea ecx, [ebp - 0x4b0]
call fcn.10023faf
mov dword [ebp - 0x564], eax
mov eax, dword [ebp - 0x564]
mov dword [ebp - 0x568], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x568]
lea ecx, [ebp - 0x4b0]
call fcn.10003e6e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c0]
call fcn.10003e5d
mov dword [ebp - 0x4b4], 1
call fcn.100a8341
test eax, eax
je 0x1009fba8
cmp dword [ebp - 0x4b4], 0
je 0x1009fba8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b0]
call fcn.10003e5d
jmp 0x1009fab1
push 0x104
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x4a8]
lea ecx, [ebp - 0x4b0]
call fcn.10010f80
push eax
call fcn.100a8bd4
add esp, 0x10
test eax, eax
je 0x1009fbfb
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1009fbfb
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b0]
call fcn.10003e5d
jmp 0x1009fc0f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b0]
call fcn.10003e5d
jmp 0x1009fab1
cmp dword [ebp - 0x24], 0
je 0x1009fc70
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x544]
call fcn.1003813a
mov dword [ebp - 0x56c], eax
push 0
mov ecx, dword [ebp - 0x56c]
call fcn.10010f80
push eax
lea eax, [ebp - 0x20]
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.1006dc30
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x544]
call fcn.10010cf5
jmp 0x1009fc82
push 0x83
mov ecx, dword [ebp - 0x54c]
call fcn.1009bbca
jmp 0x1009fcf8
cmp dword [ebp - 0x24], 0
je 0x1009fcd0
cmp dword [ebp - 0x24], 0
je 0x1009fcaf
push dword [ebp + 8]
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x54c]
call fcn.1009d5cb
test eax, eax
je 0x1009fcaf
mov dword [ebp - 0x570], 1
jmp 0x1009fcb6
and dword [ebp - 0x570], 0
mov eax, dword [ebp - 0x570]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1009fcce
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1009fce2
push 0x84
mov ecx, dword [ebp - 0x54c]
call fcn.1009bbca
jmp 0x1009fcf8
cmp dword [ebp - 0x24], 0
jne 0x1009fcf8
push 0x85
mov ecx, dword [ebp - 0x54c]
call fcn.1009bbca
cmp dword [ebp - 0x24], 0
jne 0x1009fd0f
cmp dword [ebp - 0x20], 0
je 0x1009fd0f
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 0x20], 0
je 0x1009fd30
push 0xbb8
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x1c], 0
je 0x1009fd43
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x548], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1000abe4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45c]
call fcn.1003cadb
mov eax, dword [ebp - 0x548]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.1006ef11
leave
ret 4