Function at 0x1015c3a
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 0x1015ec1
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 0x1015e76
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.01014063
test eax, eax
jl 0x1015e6a
cmp dword [ebp - 0x214], ebx
je 0x1015e6a
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1015e8a
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1015e8a
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 0x1015d4d
cmp dword [ebp - 0x218], ebx
je 0x1015d4d
push 0x100d600
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, ebx
je 0x1015d4d
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov edi, 0x1015f1c
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
jne 0x1015d83
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01003cd4
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 0x1015e5c
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 0x1015e42
lea eax, [ebp - 0x220]
push eax
push ebx
push esi
push 0x10135e1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x1015e42
push edi
push 0x101365a
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 0x1015e39
push dword [ebp - 0x214]
call fcn.010135ae
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1015e4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1015e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
jmp 0x1015e8a
mov dword [ebp - 0x210], 6
jmp 0x1015e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x21c], ebx
jne 0x1015eee
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1015e98
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1015ea6
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 0x1015ed7
push dword [ebp - 0x210]
push 0x9cc1
push dword [0x101e098]
call fcn.0100ed2d
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 0x1015eb5
lea eax, [ebp - 0x20c]
push eax
push 0x101371d
push dword [0x101e098]
push 0x1bc
push dword [0x101e0a4]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x1015ed7