Function at 0x10008010
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov dword [ebp - 8], 0
lea eax, [ebp - 0x14c]
mov dword [esp], 0x104
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
sub esp, 8
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jbe 0x1000817b
mov byte [ebp - 0x149], 0
mov eax, dword [0x100202c0]
mov eax, dword [eax - 0x2b6607f9]
mov dword [ebp - 0x314], eax
mov eax, dword [0x100202c4]
mov eax, dword [eax - 0x2b6607f9]
mov dword [ebp - 0x31c], eax
lea ecx, [0x10020e78]
lea eax, [0x10019190]
add eax, 0x270
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10009140
mov eax, dword [ebp - 0x31c]
lea ecx, [0x10020e78]
mov dword [esp], ecx
call eax
sub esp, 4
mov dword [ebp - 0x318], eax
lea ecx, [0x10020e5c]
lea eax, [0x10019190]
add eax, 0x221
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10008ff0
mov edx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x314]
lea ecx, [0x10020e5c]
mov dword [esp], edx
mov dword [esp + 4], ecx
call eax
sub esp, 8
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x300]
lea edx, [ebp - 0x14c]
xor ecx, ecx
lea ecx, [ebp - 0x168]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call eax
sub esp, 0x20
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 0
je 0x10008162
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x320], eax
jmp 0x1000816f
xor eax, eax
mov dword [ebp - 0x320], eax
jmp 0x1000816f
mov eax, dword [ebp - 0x320]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x164]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10003740
mov eax, dword [0x100202d0]
mov word [eax - 0x2b6607f9], 0x329
lea ecx, [0x10021160]
lea eax, [0x10019190]
add eax, 0xa35
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000b100
lea ecx, [0x10020d60]
lea eax, [0x10021160]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
sub esp, 8
lea ecx, [0x10020d20]
lea eax, [0x10021160]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
sub esp, 8
mov eax, dword [0x100202c0]
mov eax, dword [eax - 0x2b6607f9]
mov dword [ebp - 0x338], eax
mov eax, dword [0x100202c4]
mov eax, dword [eax - 0x2b6607f9]
mov dword [ebp - 0x340], eax
lea ecx, [0x10020df8]
lea eax, [0x10019190]
add eax, 0xbc
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10008a10
mov eax, dword [ebp - 0x340]
lea ecx, [0x10020df8]
mov dword [esp], ecx
call eax
sub esp, 4
mov dword [ebp - 0x33c], eax
lea ecx, [0x1002117c]
lea eax, [0x10019190]
add eax, 0xa7b
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000b250
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x338]
lea ecx, [0x1002117c]
mov dword [esp], edx
mov dword [esp + 4], ecx
call eax
sub esp, 8
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x2f8]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [ebp - 0x304]
sub esp, 8
mov eax, dword [0x100202e8]
mov dword [eax - 0x2b6607f9], 1
lea eax, [ebp - 0x164]
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x334], eax
lea ecx, [0x1002118c]
lea eax, [0x10019190]
add eax, 0xab0
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000b400
mov edx, dword [ebp - 0x334]
mov eax, dword [ebp - 0x330]
lea ecx, [0x1002118c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x100202c0]
mov eax, dword [eax - 0x2b6607f9]
mov dword [ebp - 0x324], eax
mov eax, dword [0x100202c4]
mov eax, dword [eax - 0x2b6607f9]
mov dword [ebp - 0x32c], eax
lea ecx, [0x10020e78]
lea eax, [0x10019190]
add eax, 0x270
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10009140
mov eax, dword [ebp - 0x32c]
lea ecx, [0x10020e78]
mov dword [esp], ecx
call eax
sub esp, 4
mov dword [ebp - 0x328], eax
lea ecx, [0x1002119c]
lea eax, [0x10019190]
add eax, 0xaea
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000b510
mov edx, dword [ebp - 0x328]
mov eax, dword [ebp - 0x324]
lea ecx, [0x1002119c]
mov dword [esp], edx
mov dword [esp + 4], ecx
call eax
sub esp, 8
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x308]
lea ecx, [ebp - 0x48]
xor edx, edx
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
call eax
sub esp, 0xc
mov dword [ebp - 0x30c], eax
xor eax, eax
cmp eax, dword [ebp - 0x30c]
je 0x100084a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, 0xb7
cmp eax, ecx
jne 0x10008410
mov eax, dword [ebp - 0x30c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebp - 0x30c], 0
xor eax, eax
cmp eax, dword [ebp - 0x30c]
je 0x1000849e
xor eax, eax
lea eax, [0x10007000]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
mov dword [ebp - 0x310], eax
xor eax, eax
cmp eax, dword [ebp - 0x310]
je 0x1000848c
mov eax, dword [ebp - 0x310]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebp - 4], 1
jmp 0x10008510
mov eax, dword [ebp - 0x30c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x100084a3
mov eax, dword [0x10021d00]
mov ecx, dword [0x10021cfc]
mov edx, eax
sub edx, 1
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
or al, cl
test al, 1
jne 0x100084d4
jmp 0x1000851b
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [0x10021d00]
mov ecx, dword [0x10021cfc]
mov edx, eax
sub edx, 1
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
or al, cl
test al, 1
jne 0x1000850b
jmp 0x1000851b
jmp 0x10008510
mov eax, dword [ebp - 4]
add esp, 0x360
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x100084d4