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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
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 0x10008bb1
mov eax, dword [0x10022cc8]
mov ecx, dword [0x10022cc4]
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 0x100089ce
jmp 0x10008f62
mov byte [ebp - 0x149], 0
mov eax, dword [0x100212c0]
mov eax, dword [eax - 0x2fc391f6]
mov dword [ebp - 0x318], eax
mov eax, dword [0x100212c4]
mov eax, dword [eax - 0x2fc391f6]
mov dword [ebp - 0x320], eax
lea ecx, [0x10021e78]
lea eax, [0x1001a190]
add eax, 0x2a6
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10009ca0
mov eax, dword [ebp - 0x320]
lea ecx, [0x10021e78]
mov dword [esp], ecx
call eax
sub esp, 4
mov dword [ebp - 0x31c], eax
lea ecx, [0x10021e5c]
lea eax, [0x1001a190]
add eax, 0x260
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10009ba0
mov edx, dword [ebp - 0x31c]
mov eax, dword [ebp - 0x318]
lea ecx, [0x10021e5c]
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
setne al
mov byte [ebp - 0x311], al
mov eax, dword [0x10022cc8]
mov ecx, dword [0x10022cc4]
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 0x10008b06
jmp 0x10008f62
mov al, byte [ebp - 0x311]
test al, 1
jne 0x10008b19
jmp 0x10008b98
mov eax, dword [0x10022cc8]
mov ecx, dword [0x10022cc4]
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 0x10008b4a
jmp 0x1000905e
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x324], eax
mov eax, dword [0x10022cc8]
mov ecx, dword [0x10022cc4]
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 0x10008b87
jmp 0x1000905e
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x328], eax
jmp 0x10008ba5
xor eax, eax
mov dword [ebp - 0x328], eax
jmp 0x10008ba5
mov eax, dword [ebp - 0x328]
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.10003d60
mov eax, dword [0x100212d0]
mov word [eax - 0x2fc391f6], 0x324
lea ecx, [0x10022160]
lea eax, [0x1001a190]
add eax, 0xa9f
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000b7b0
lea ecx, [0x10021d60]
lea eax, [0x10022160]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
sub esp, 8
lea ecx, [0x10021d20]
lea eax, [0x10022160]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
sub esp, 8
mov eax, dword [0x100212c0]
mov eax, dword [eax - 0x2fc391f6]
mov dword [ebp - 0x340], eax
mov eax, dword [0x100212c4]
mov eax, dword [eax - 0x2fc391f6]
mov dword [ebp - 0x348], eax
lea ecx, [0x10021df8]
lea eax, [0x1001a190]
add eax, 0xbf
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10009410
mov eax, dword [ebp - 0x348]
lea ecx, [0x10021df8]
mov dword [esp], ecx
call eax
sub esp, 4
mov dword [ebp - 0x344], eax
lea ecx, [0x1002217c]
lea eax, [0x1001a190]
add eax, 0xadf
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000b900
mov edx, dword [ebp - 0x344]
mov eax, dword [ebp - 0x340]
lea ecx, [0x1002217c]
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 [0x100212e8]
mov dword [eax - 0x2fc391f6], 1
lea eax, [ebp - 0x164]
mov dword [ebp - 0x338], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x33c], eax
lea ecx, [0x1002218c]
lea eax, [0x1001a190]
add eax, 0xb1f
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000ba10
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x338]
lea ecx, [0x1002218c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x100212c0]
mov eax, dword [eax - 0x2fc391f6]
mov dword [ebp - 0x32c], eax
mov eax, dword [0x100212c4]
mov eax, dword [eax - 0x2fc391f6]
mov dword [ebp - 0x334], eax
lea ecx, [0x10021e78]
lea eax, [0x1001a190]
add eax, 0x2a6
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10009ca0
mov eax, dword [ebp - 0x334]
lea ecx, [0x10021e78]
mov dword [esp], ecx
call eax
sub esp, 4
mov dword [ebp - 0x330], eax
lea ecx, [0x1002219c]
lea eax, [0x1001a190]
add eax, 0xb54
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000bb10
mov edx, dword [ebp - 0x330]
mov eax, dword [ebp - 0x32c]
lea ecx, [0x1002219c]
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 0x10008f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, 0xb7
cmp eax, ecx
jne 0x10008e46
mov eax, dword [ebp - 0x30c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebp - 0x30c], 0
mov eax, dword [0x10022cc8]
mov ecx, dword [0x10022cc4]
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 0x10008e77
jmp 0x10009063
xor eax, eax
cmp eax, dword [ebp - 0x30c]
setne al
mov byte [ebp - 0x349], al
mov eax, dword [0x10022cc8]
mov ecx, dword [0x10022cc4]
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 0x10008eb9
jmp 0x10009063
mov al, byte [ebp - 0x349]
test al, 1
jne 0x10008ecc
jmp 0x10008f4c
xor eax, eax
lea eax, [0x10007990]
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 0x10008f3a
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 0x10008f57
mov eax, dword [ebp - 0x30c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x10008f51
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add esp, 0x378
pop ebp
ret
mov byte [ebp - 0x149], 0
mov eax, dword [0x100212c0]
mov eax, dword [eax - 0x2fc391f6]
mov dword [ebp - 0x350], eax
mov eax, dword [0x100212c4]
mov eax, dword [eax - 0x2fc391f6]
mov dword [ebp - 0x358], eax
lea ecx, [0x10021e78]
lea eax, [0x1001a190]
add eax, 0x2a6
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10009ca0
mov eax, dword [ebp - 0x358]
lea ecx, [0x10021e78]
mov dword [esp], ecx
call eax
sub esp, 4
mov dword [ebp - 0x354], eax
lea ecx, [0x10021e5c]
lea eax, [0x1001a190]
add eax, 0x260
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10009ba0
mov edx, dword [ebp - 0x354]
mov eax, dword [ebp - 0x350]
lea ecx, [0x10021e5c]
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
jmp 0x100089ce
jmp 0x10008b4a
jmp 0x10008e77