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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x46
push 0
push 0
dec ecx
jne 0x1318e3ec
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x1318e6b3
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.1318d80c
mov esi, eax
cmp esi, 0x20202020
jne 0x1318e41d
call fcn.1318e2b0
jmp 0x1318e688
call fcn.13142af4
lea eax, [ebp - 0x206]
push eax
push 0xfb
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x20c]
lea eax, [ebp - 0x206]
call fcn.13148d88
mov edx, dword [ebp - 0x20c]
mov eax, dword [0x1318fef4]
mov ecx, 0x1318e6cc
call fcn.131447f4
lea edx, [ebp - 0x210]
lea eax, [ebp - 0x206]
call fcn.13148d88
push dword [ebp - 0x210]
push 0x1318e6dc
lea ecx, [ebp - 0x214]
mov edx, 0x28
mov al, 0x20
call fcn.13144b98
push dword [ebp - 0x214]
mov eax, 0xffff
call fcn.13143074
lea ecx, [ebp - 0x218]
mov edx, 4
call fcn.13148454
push dword [ebp - 0x218]
lea eax, [ebp - 4]
mov edx, 4
call fcn.13144868
push 0x40
lea edx, [ebp - 0x21c]
xor eax, eax
call fcn.13142a94
mov ecx, dword [ebp - 0x21c]
mov dl, 1
mov eax, dword [0x13152320]
call fcn.13156160
mov ebx, eax
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x13152320]
call fcn.13156160
mov edi, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, esi
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, ebx
call fcn.13155ccc
push 0
push 0
mov eax, edi
call fcn.13155ccc
mov eax, esi
xor edx, edx
push edx
push eax
mov edx, ebx
mov eax, edi
call fcn.13155f48
mov eax, edi
call fcn.131437b0
mov eax, ebx
call fcn.131437b0
push 0xfb
lea eax, [ebp - 0x10b]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10b]
call fcn.13148d88
mov eax, dword [ebp - 8]
call fcn.131447a8
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x1318e577
lea eax, [ebp - 8]
mov edx, 0x1318e6f0
call fcn.131447b0
lea eax, [ebp - 0x220]
mov ecx, 0x1318e6fc
mov edx, dword [ebp - 8]
call fcn.131447f4
mov eax, dword [ebp - 0x220]
call fcn.13148828
test al, al
jne 0x1318e605
push 0x1318e718
push 0xa
mov ecx, dword [0x13191660]
mov dl, 1
mov eax, dword [0x1315248c]
call fcn.131565ac
mov ebx, eax
lea eax, [ebp - 0x224]
mov ecx, 0x1318e6fc
mov edx, dword [ebp - 8]
call fcn.131447f4
mov edx, dword [ebp - 0x224]
mov eax, ebx
call fcn.131563a8
mov eax, ebx
call fcn.131437b0
lea eax, [ebp - 0x228]
mov ecx, 0x1318e6fc
mov edx, dword [ebp - 8]
call fcn.131447f4
mov eax, dword [ebp - 0x228]
call fcn.131449a8
mov edx, eax
mov eax, 0x1318e71c
call fcn.1318dc1c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x1318e2a0
push 0
push 0
call sub.kernel32.dll_CreateThread
lea eax, [ebp - 0xc]
call fcn.131444e8
call fcn.13142a34
mov ebx, eax
test ebx, ebx
jle 0x1318e65f
mov esi, 1
push dword [ebp - 0xc]
push 0x1318e72c
lea edx, [ebp - 0x22c]
mov eax, esi
call fcn.13142a94
push dword [ebp - 0x22c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.13144868
inc esi
dec ebx
jne 0x1318e633
push dword [ebp - 4]
push 0x1318e72c
push dword [ebp - 0xc]
lea eax, [ebp - 0x230]
mov edx, 3
call fcn.13144868
mov eax, dword [ebp - 0x230]
mov edx, dword [ebp - 4]
call fcn.1318db64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1318e6ba
lea eax, [ebp - 0x230]
mov edx, 0xa
call fcn.1314450c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.1314450c
ret