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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
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 0x1000866e
mov byte [ebp - 0x149], 0
mov eax, dword [0x100202c0]
mov eax, dword [eax + 0x527136bf]
mov dword [ebp - 0x314], eax
mov eax, dword [0x100202c4]
mov eax, dword [eax + 0x527136bf]
mov dword [ebp - 0x31c], eax
lea ecx, [0x10020e78]
lea eax, [0x10019190]
add eax, 0x28f
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10009260
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, 0x251
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.100091d0
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 0x100085e2
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x320], eax
jmp 0x100085ef
xor eax, eax
mov dword [ebp - 0x320], eax
jmp 0x100085ef
mov eax, dword [ebp - 0x320]
mov dword [ebp - 0x324], eax
mov eax, dword [0x10021ca0]
mov ecx, dword [0x10021c9c]
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 0x1000862c
jmp 0x100089a7
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x150], eax
mov eax, dword [0x10021ca0]
mov ecx, dword [0x10021c9c]
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 0x10008669
jmp 0x100089a7
jmp 0x1000866e
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x164]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10003bf0
mov eax, dword [0x100202d0]
mov word [eax + 0x527136bf], 0x328
lea ecx, [0x10021160]
lea eax, [0x10019190]
add eax, 0xad3
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000af10
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 + 0x527136bf]
mov dword [ebp - 0x33c], eax
mov eax, dword [0x100202c4]
mov eax, dword [eax + 0x527136bf]
mov dword [ebp - 0x344], eax
lea ecx, [0x10020df8]
lea eax, [0x10019190]
add eax, 0xb8
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10008c10
mov eax, dword [ebp - 0x344]
lea ecx, [0x10020df8]
mov dword [esp], ecx
call eax
sub esp, 4
mov dword [ebp - 0x340], eax
lea ecx, [0x1002117c]
lea eax, [0x10019190]
add eax, 0xb0a
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000b020
mov edx, dword [ebp - 0x340]
mov eax, dword [ebp - 0x33c]
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 + 0x527136bf], 1
lea eax, [ebp - 0x164]
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x338], eax
lea ecx, [0x1002118c]
lea eax, [0x10019190]
add eax, 0xb49
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000b0b0
mov edx, dword [ebp - 0x338]
mov eax, dword [ebp - 0x334]
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 + 0x527136bf]
mov dword [ebp - 0x328], eax
mov eax, dword [0x100202c4]
mov eax, dword [eax + 0x527136bf]
mov dword [ebp - 0x330], eax
lea ecx, [0x10020e78]
lea eax, [0x10019190]
add eax, 0x28f
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.10009260
mov eax, dword [ebp - 0x330]
lea ecx, [0x10020e78]
mov dword [esp], ecx
call eax
sub esp, 4
mov dword [ebp - 0x32c], eax
lea ecx, [0x1002119c]
lea eax, [0x10019190]
add eax, 0xb8b
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000b140
mov edx, dword [ebp - 0x32c]
mov eax, dword [ebp - 0x328]
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 0x10008996
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, 0xb7
cmp eax, ecx
jne 0x10008903
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 0x10008991
xor eax, eax
lea eax, [0x10007450]
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 0x1000897f
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 0x1000899c
mov eax, dword [ebp - 0x30c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x10008996
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add esp, 0x364
pop ebp
ret
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x150], eax
jmp 0x1000862c