Function at 0x4033a0
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Delete file
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1bf4]
mov eax, 0x1c74
call fcn.00417900
mov eax, dword [0x468060]
xor eax, ebp
mov dword [ebp + 0x1bf0], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, ebx
je 0x403760
cmp dword [ebp - 0x2c], 1
jle 0x403760
push 0x470440
call fcn.00403170
mov edx, dword [0x46cbcc]
mov eax, dword [edx + 0xc]
mov ecx, 0x46cbcc
call eax
push 0x40
mov edi, eax
lea ecx, [ebp - 0x7c]
push ebx
add edi, 0x10
push ecx
mov dword [ebp - 0x28], edi
call fcn.0040c3b0
xor eax, eax
add esp, 0xc
lea edx, [ebp - 0x80]
push edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov eax, 5
mov dword [ebp - 0x54], 1
mov word [ebp - 0x50], ax
mov ecx, dword [esi + 4]
push str._first
push ecx
call ebx
test eax, eax
je 0x4035b1
push 0x403880
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov edx, dword [esi + 4]
push 6
push str._start
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrNIW]
test eax, eax
je 0x403784
push 0x800
lea eax, [ebp + 0x7e0]
push 0
push eax
call fcn.0040c3b0
add esp, 0xc
cmp dword [ebp - 0x2c], 3
jl 0x4035b1
mov eax, dword [esi + 8]
test eax, eax
je 0x4034c1
push eax
mov edx, 0x800
lea ecx, [ebp + 0x7e0]
call fcn.00403b50
cmp dword [ebp - 0x2c], 4
jl 0x4035b1
mov ecx, dword [esi + 0xc]
push str._lock
push ecx
call ebx
test eax, eax
jne 0x4035b1
push 0x800
push eax
lea edx, [ebp + 0xfe0]
push edx
call fcn.0040c3b0
add esp, 0xc
cmp dword [ebp - 0x2c], 5
jl 0x403511
mov esi, dword [esi + 0x10]
test esi, esi
je 0x403511
push esi
mov edx, 0x800
lea ecx, [ebp + 0xfe0]
call fcn.00403b50
lea edx, [ebp + 0xfe0]
lea edi, [ebp - 0x28]
call fcn.00402780
xor eax, eax
push 0x44
push eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040c3b0
add esp, 0xc
lea edx, [ebp + 0x7e0]
mov ecx, 5
push edx
mov dword [ebp - 0x80], 0x44
mov word [ebp - 0x50], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4035ae
push 0x45fd70
lea eax, [ebp + 0x7e0]
push eax
mov eax, 0x800
call fcn.00403a70
lea ecx, [ebp + 0xfe0]
push ecx
lea edx, [ebp + 0x7e0]
push edx
mov eax, 0x800
call fcn.00403a70
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x80]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp + 0x7e0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [ebp - 0x28]
push 0x800
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0040c3b0
add esp, 0xc
test edi, edi
je 0x403668
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x403668
lea esi, [eax + eax]
mov eax, esi
call fcn.004154f0
mov ebx, esp
mov ecx, esi
mov edx, 3
mov eax, edi
mov esi, ebx
call fcn.00403a40
test eax, eax
je 0x403668
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403604
sub ecx, esi
call fcn.00401000
mov esi, eax
test esi, esi
je 0x403668
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jg 0x403668
lea eax, [edi + edi]
call fcn.004154f0
mov ecx, esp
mov eax, esi
push 3
mov edx, edi
mov esi, ecx
call fcn.00403a10
mov esi, eax
test esi, esi
je 0x403668
push str.pge
mov edx, 0x800
lea ecx, [ebp - 0x20]
call fcn.00403b50
push esi
lea ecx, [ebp - 0x20]
push ecx
mov eax, 0x800
call fcn.00403a70
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x20]
call fcn.00402540
lea ecx, [ebp - 0x24]
call fcn.00404460
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40369b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x28]
call fcn.00404260
mov ecx, dword [0x470450]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4036e5
mov edx, dword [0x470450]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4036e5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x470450]
push eax
call edi
push 0x208
lea ecx, [ebp + 0x19e8]
push 0
push ecx
call fcn.0040c3b0
add esp, 0xc
push 0x104
lea edx, [ebp + 0x19e8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...downlaunch.dll
lea eax, [ebp + 0x19e8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp + 0x19e8]
push ecx
call ebx
test eax, eax
je 0x403737
lea edx, [ebp + 0x19e8]
push edx
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403760
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1bf0]
xor ecx, ebp
call fcn.0040b009
add ebp, 0x1bf4
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 4]
push 7
push 0x45fd74
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrNIW]
test eax, eax
je 0x4035b1
push 0x800
lea ecx, [ebp + 0xfe0]
push 0
push ecx
call fcn.0040c3b0
mov esi, dword [esi + 8]
add esp, 0xc
test esi, esi
je 0x4037cb
push esi
mov edx, 0x800
lea ecx, [ebp + 0xfe0]
call fcn.00403b50
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp + 0xfe0]
call fcn.00402540
lea ecx, [ebp - 0x24]
call fcn.00404460
lea eax, [ebp - 0x24]
call fcn.004025f0
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x45fcf0
call fcn.00402540
lea ecx, [ebp - 0x24]
call fcn.00404260
lea eax, [ebp - 0x24]
call fcn.004025f0
push 0x208
lea ecx, [ebp + 0x17e0]
push 0
push ecx
call fcn.0040c3b0
add esp, 0xc
push 0x104
lea edx, [ebp + 0x17e0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...downlaunch.dll
lea eax, [ebp + 0x17e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp + 0x17e0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403862
lea edx, [ebp + 0x17e0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x28]
call fcn.004025f0
jmp 0x403760