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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x101e08c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov dword [ebp - 0x218], eax
push 0xc
xor ebx, ebx
xor eax, eax
push 8
mov dword [ebp - 0x210], 0xe
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x214], ebx
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x1015ebd
mov edi, dword [ebp + 8]
push edi
push ebx
push 0x410
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x1015e72
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0101405e
test eax, eax
jl 0x1015e66
cmp dword [ebp - 0x214], ebx
je 0x1015e66
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1015e86
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1015e86
lea eax, [ebp - 0x218]
push eax
push dword [esi + 4]
mov dword [ebp - 0x218], ebx
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1015d49
cmp dword [ebp - 0x218], ebx
je 0x1015d49
push 0x100d5f0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, ebx
je 0x1015d49
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov edi, 0x1015f18
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
jne 0x1015d7f
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01003c78
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push eax
call dword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40010000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
je 0x1015e58
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push ebx
push ebx
lea eax, [esi + 8]
push eax
call edi
push eax
push dword [ebp - 0x214]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1015e3e
lea eax, [ebp - 0x220]
push eax
push ebx
push esi
push 0x10135dc
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x1015e3e
push edi
push 0x1013655
push dword [0x101e098]
mov dword [ebp - 0x21c], 1
push 0x1bb
push dword [0x101e0a4]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [ebp - 0x210], eax
cmp eax, 0x4c7
jne 0x1015e35
push dword [ebp - 0x214]
call fcn.010135a9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1015e4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1015e7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
jmp 0x1015e86
mov dword [ebp - 0x210], 6
jmp 0x1015e7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x21c], ebx
jne 0x1015eea
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1015e94
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1015ea2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x210], 0x4c7
je 0x1015ed3
push dword [ebp - 0x210]
push 0x9cc1
push dword [0x101e098]
call fcn.0100ed25
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001679
leave
ret 0x10
cmp dword [ebp - 0x210], ebx
jne 0x1015eb1
lea eax, [ebp - 0x20c]
push eax
push 0x1013718
push dword [0x101e098]
push 0x1bc
push dword [0x101e0a4]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x1015ed3