Function at 0x405ee0
Capabilities:
Accept command line arguments
Check if file exists
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov ax, word [0x4013fc]
push ebx
push esi
push edi
mov word [ebp - 0x28c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x28a]
rep stosd dword es:[edi], eax
xor esi, esi
push esi
mov dword [ebp - 0xc], esi
stosw word es:[edi], ax
mov dword [ebp - 0x10], esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40613b
push 0x4013ec
push esi
call fcn.004092a5
push eax
call fcn.0040762e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x405f43
xor ebx, ebx
jmp 0x405f6e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00407580
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp - 4]
mov word [ebx], si
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x28c]
push eax
push ebx
call fcn.0040727d
cmp dword [ebp - 0xc], esi
je 0x405fb0
push dword [ebp - 0xc]
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x405fb0
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop edi
push edi
call fcn.00407b10
push 0x401e9c
push edi
push esi
call fcn.00409cb9
cmp eax, esi
mov dword [ebp - 4], eax
je 0x406126
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40611d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28c]
push esi
push eax
push 0x406356
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x4060aa
call fcn.0040776f
cmp dword [0x410170], esi
jne 0x40601b
cmp dword [ebp - 0x10], esi
je 0x40601b
mov eax, edi
jmp 0x40601d
xor eax, eax
push 0x4013d4
push esi
push esi
push esi
push 0x4013bc
push esi
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x4013ac
call fcn.004062a1
mov ebx, 0xff
lea eax, [ebp - 8]
push ebx
push 0xffffffffffffffff
push esi
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
call edi
test eax, eax
je 0x406091
push 1
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040958c
test eax, eax
je 0x406085
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40]
push eax
call fcn.00409089
jmp 0x40605e
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 8]
push esi
push eax
push 1
jmp 0x406058
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.00406142
lea ecx, [ebp - 0x20]
call fcn.0040618c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [0x410174], esi
jne 0x4060c3
cmp dword [0x410170], esi
je 0x40611d
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40611d
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x84], 0x44
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28c]
push esi
push eax
push esi
call fcn.00409f24
test eax, eax
je 0x40611d
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004081c2
call fcn.00407c11
call fcn.0040771a
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]