Function at 0x403580
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443887
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x4567a0]
xor eax, esp
mov dword [esp + 0x898], eax
push ebx
push esi
push edi
mov eax, dword [0x4567a0]
xor eax, esp
push eax
lea eax, [esp + 0x8b0]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
push eax
mov esi, ecx
mov dword [esp + 0x28], 8
mov dword [esp + 0x2c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00416bc8
call fcn.00417f95
test eax, eax
jne 0x4035fc
push 0xffffffffffffffff
push eax
push 0x64
call fcn.00415c17
jmp 0x4039a8
push 0
call fcn.004188c8
add esp, 4
push str.Local_AppWizard_Generated_Applications
mov ecx, esi
call fcn.00418e3d
call fcn.004039e0
call fcn.00404760
cmp eax, 1
jne 0x403628
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0x66
lea ecx, [esp + 0x34]
call fcn.004122b0
mov dword [esp + 0x2c], vtable.CLauncherDlg.0
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x8b8], 0
push 0
mov dword [esi + 0x20], ecx
call fcn.0041402e
mov eax, dword [esi + 0x20]
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x44a3e8
lea ecx, [esp + 0x14]
call fcn.00401e70
mov byte [esp + 0x8b8], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x40368c
xor ecx, ecx
jmp 0x4036a0
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x403691
sub ecx, edi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401cf0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x4036d3
push 0x44a558
push ecx
call fcn.00429ca8
add esp, 8
test eax, eax
je 0x4036d3
sub eax, dword [esp + 0x10]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4036e3
push 0x44a3e8
lea ecx, [esp + 0x14]
call fcn.00402200
jmp 0x403737
lea eax, [esp + 0x10]
push eax
call fcn.00405df0
push 3
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405eb0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8bc], 2
call fcn.00401c70
mov byte [esp + 0x8b8], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403737
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0xac]
push ecx
lea ebx, [esi + 0xac]
sub eax, 0x10
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.00401e00
add esp, 4
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.00404a80
cmp eax, 1
jne 0x403790
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
jne 0x403790
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ebx
call fcn.00402280
mov edi, esi
call fcn.00404b60
test eax, eax
jne 0x403790
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebx]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.00401e00
add esp, 4
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.00404a80
cmp eax, 1
jne 0x4037c6
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], 0
je 0x4037c6
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, esi
call fcn.00403d10
mov eax, dword [esi + 0xb0]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.00401e00
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00403dc0
test al, al
jne 0x4037fc
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.00401e00
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00403dc0
test al, al
jne 0x40382b
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00404020
push 0x44a3e8
lea ecx, [esp + 0x1c]
mov dword [esi + 0xe0], eax
call fcn.00401e70
push 0x44a3e8
lea ecx, [esp + 0x20]
mov byte [esp + 0x8bc], 3
call fcn.00401e70
push 0x7fe
lea eax, [esp + 0xaa]
push 0
mov byte [esp + 0x8c0], 4
push eax
mov word [esp + 0xb0], 0
call fcn.0042af00
add esp, 0xc
push 0x400
lea ecx, [esp + 0xa8]
push 0
push ecx
call fcn.0042af00
add esp, 0xc
push 0x400
lea edx, [esp + 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402ca0
push str.AscTaskScheduler.dll
lea ecx, [esp + 0x1c]
call fcn.00402ca0
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402ca0
push str.AscSqlite.dll
lea ecx, [esp + 0x20]
call fcn.00402ca0
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], 0
je 0x403906
call fcn.00405710
test al, al
jne 0x403906
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esi + 0xe0]
cmp eax, 6
je 0x40393f
cmp eax, 0x3c
jle 0x40391b
cmp eax, 0x3e
jle 0x40393f
mov eax, dword [esi + 0xa4]
mov esi, dword [esi + 0xa8]
push 1
push eax
mov eax, dword [esp + 0x18]
push eax
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x403979
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00402280
call fcn.00403dc0
test al, al
jne 0x403961
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00402280
mov ecx, esi
call fcn.00405400
lea ecx, [esp + 0x1c]
call fcn.00401f60
lea ecx, [esp + 0x18]
call fcn.00401f60
lea ecx, [esp + 0x10]
call fcn.00401f60
lea ecx, [esp + 0x2c]
mov dword [esp + 0x8b8], 0xffffffff
call fcn.00412225
xor eax, eax
mov ecx, dword [esp + 0x8b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x898]
xor ecx, esp
call fcn.00429384
mov esp, ebp
pop ebp
ret