Function at 0x401a79
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x401af6
cmp byte [esi], bl
je 0x401af6
push 8
push str._delete
push esi
call fcn.00402350
add esp, 0xc
test eax, eax
jne 0x401d9a
add esi, 8
mov edi, 0xfa
mov dword [ebp + 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push str.OmniPortApp
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
push edi
mov dword [ebp + 8], eax
call esi
cmp dword [ebp + 8], ebx
jne 0x401abb
push 1
pop ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401d9a
push edi
call esi
mov eax, ebx
inc ebx
cmp eax, 0xa
jl 0x401ad5
jmp 0x401d9a
mov edi, 0x104
lea eax, [ebp - 0x36c]
push edi
push eax
push dword [ebp + 8]
mov dword [ebp + 0x10], ebx
mov byte [ebp - 0x164], bl
mov byte [ebp - 0x268], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x36c]
push 0x408034
push eax
call fcn.004020ef
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x401b3c
or esi, 0xffffffff
jmp 0x401d67
push 2
push 0xfffffffffffffffc
push esi
call fcn.00402043
add esp, 0xc
test eax, eax
jne 0x401b82
push esi
push 4
lea eax, [ebp + 0x10]
push 1
push eax
call fcn.00401f5b
add esp, 0x10
cmp eax, 4
jne 0x401baa
cmp dword [ebp + 0x10], 0x400
ja 0x401baa
push 2
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp + 0x10]
push eax
push esi
call fcn.00402043
add esp, 0xc
test eax, eax
je 0x401b89
push 0xfffffffffffffffd
jmp 0x401d66
push dword [ebp + 0x10]
call fcn.0040229d
push esi
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push 1
push eax
call fcn.00401f5b
mov ecx, dword [ebp + 0x10]
add esp, 0x14
cmp eax, ecx
je 0x401bb1
push 0xfffffffffffffffe
jmp 0x401d66
mov eax, dword [ebp - 4]
push esi
mov byte [eax + ecx - 1], bl
call fcn.00401dfb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.004011a6
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x401d67
lea eax, [ebp - 0x88c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x164]
push eax
push ebx
lea eax, [ebp - 0x88c]
push 0x408044
push eax
call esi
lea eax, [ebp - 0x268]
push eax
push ebx
lea eax, [ebp - 0x88c]
push 0x408040
push eax
call esi
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x36c]
push eax
push dword [ebp - 8]
call section..text
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x401d67
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x36c]
push eax
push dword [ebp - 0xc]
call section..text
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x401d67
mov cl, byte [ebp - 0x164]
push 1
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x1e], bx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x788], 0x22
pop eax
cmp cl, bl
je 0x401ca4
mov byte [ebp + eax - 0x788], cl
mov cl, byte [ebp + eax - 0x164]
inc eax
jmp 0x401c8f
mov byte [ebp + eax - 0x788], 0x22
inc eax
mov cl, byte [ebp - 0x268]
lea esi, [ebp - 0x268]
mov byte [ebp + eax - 0x788], 0x20
inc eax
mov byte [ebp + eax - 0x788], 0x22
inc eax
cmp cl, bl
je 0x401cdd
mov byte [ebp + eax - 0x788], cl
mov cl, byte [esi + 1]
inc eax
inc esi
jmp 0x401ccb
mov byte [ebp + eax - 0x788], 0x22
inc eax
mov cl, byte [ebp - 0x36c]
lea esi, [ebp - 0x36c]
mov byte [ebp + eax - 0x788], 0x20
inc eax
mov byte [ebp + eax - 0x788], 0x22
inc eax
cmp cl, bl
je 0x401d16
mov byte [ebp + eax - 0x788], cl
mov cl, byte [esi + 1]
inc eax
inc esi
jmp 0x401d04
mov edx, dword [ebp - 4]
mov byte [ebp + eax - 0x788], 0x22
inc eax
mov byte [ebp + eax - 0x788], 0x20
inc eax
mov cl, byte [edx]
cmp cl, bl
je 0x401d3c
mov byte [ebp + eax - 0x788], cl
inc eax
inc edx
jmp 0x401d2b
mov byte [ebp + eax - 0x788], bl
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
lea eax, [ebp - 0x788]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401d9a
push 0xfffffffffffffff8
pop esi
cmp byte [ebp - 0x164], bl
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x401d7e
lea eax, [ebp - 0x164]
push eax
call edi
cmp byte [ebp - 0x268], bl
je 0x401d8f
lea eax, [ebp - 0x268]
push eax
call edi
push esi
push dword [ebp + 8]
call fcn.00401da3
pop ecx
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10