Function at 0x4107a8
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x410a08
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402754
mov dword [ebp - 0x6c], 0x44
test bl, bl
je 0x41085b
lea edx, [ebp - 0xc]
mov eax, 0x410a24
call fcn.0040f9e0
mov dword [ebp - 0x244], 0xc
xor eax, eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], 0xffffffff
push 0
push 0x20
push 3
lea eax, [ebp - 0x244]
push eax
push 0
push 0x40000000
mov eax, dword [ebp - 0xc]
call fcn.004037b8
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], pe_nt_image_headers32
mov word [ebp - 0x3c], 0
or dword [ebp - 0x40], 1
jmp 0x41085d
xor esi, esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
call fcn.004037b8
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004037b8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4108df
xor ebx, ebx
call sub.kernel32.dll_GetLastError_1
mov esi, eax
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00406950
cmp dword [ebp - 0x18], 0
je 0x4108b4
mov eax, edi
mov ecx, 0x410a38
mov edx, dword [ebp - 0x18]
call fcn.00403640
push dword [edi]
push 0x410a44
lea edx, [ebp - 0x248]
mov eax, esi
call fcn.00405eb0
push dword [ebp - 0x248]
mov eax, edi
mov edx, 3
call fcn.004036b4
jmp 0x4109da
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_WaitForSingleObject
test bl, bl
je 0x410972
mov eax, esi
call fcn.00405fc0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x238]
call fcn.004046f6
lea eax, [ebp - 0x238]
call fcn.00404977
mov eax, edi
call fcn.00403378
jmp 0x41094a
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x238]
call fcn.00403988
lea eax, [ebp - 0x238]
call fcn.00404914
push dword [edi]
push dword [ebp - 0x14]
push 0x410a58
mov eax, edi
mov edx, 3
call fcn.004036b4
lea eax, [ebp - 0x238]
call fcn.004047d4
test al, al
je 0x41091b
lea eax, [ebp - 0x238]
call fcn.00404798
mov eax, dword [ebp - 0xc]
call fcn.004037b8
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0x10], 0
sete bl
lea eax, [ebp - 0x248]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x250], eax
mov byte [ebp - 0x24c], 0
lea edx, [ebp - 0x250]
xor ecx, ecx
mov eax, 0x410a64
call fcn.00406874
push dword [ebp - 0x248]
push 0x410a58
push dword [edi]
mov eax, edi
mov edx, 3
call fcn.004036b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410a0f
lea eax, [ebp - 0x248]
call fcn.00403378
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040339c
lea eax, [ebp - 0xc]
call fcn.00403378
ret