Function at 0x480290
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Query environment variable
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5671f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3e8
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0
mov dword [ebp - 0x3b8], ebx
mov dword [ebp - 0x3bc], 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0xad8
call fcn.00481041
mov esi, eax
add esp, 4
test esi, esi
je 0x480305
push 0xad8
push 0
push esi
call fcn.005219d0
add esp, 0xc
mov ecx, esi
call fcn.0043a5d0
jmp 0x480307
xor eax, eax
push 0
mov dword [0x5ba980], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x480939
push 0
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
push 0
push esi
call fcn.0048beef
test eax, eax
je 0x480939
push ebx
call fcn.004b2ba0
mov eax, dword [0x5ba980]
add esp, 4
mov dword [eax], ebx
call fcn.0043d0a0
test eax, eax
jne 0x4803b1
mov ecx, dword [0x5ba980]
push 1
call fcn.004452e0
mov edi, dword [0x5ba980]
push 0x208
push 0
lea ebx, [edi + 0xc4]
push ebx
call fcn.005219d0
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [edi + 4]
add esp, 0xc
push 0x58f348
push eax
call esi
push 0x58bc94
lea eax, [edi + 0x84]
push eax
call esi
push 0x58f350
lea eax, [edi + 0x44]
push eax
call esi
push 0x58f354
push ebx
call esi
mov ebx, dword [ebp - 0x3b8]
push str.UIDowner
lea eax, [ebp - 0x238]
push str._s:39c3f1f0f71d1c76acf8109d6d7df60b
push eax
call fcn.00413710
add esp, 0xc
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
cmovae eax, dword [ebp - 0x238]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.DLL_OpenMutexW]
test eax, eax
je 0x4803fc
mov dword [0x5ba978], 0
jmp 0x480425
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [0x5ba978], 1
call fcn.00443a00
call fcn.0043ad30
test eax, eax
jne 0x4804a8
push 0x10
push 0x58d1e8
push 0x595328
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x480486
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48047c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4809f9
push edx
push ecx
call fcn.00497cc1
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
jmp 0x48094d
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.005219d0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x480535
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x480515
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48050b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4809fe
push edx
push ecx
call fcn.00497cc1
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x220]
push 0x5c
push eax
call fcn.0052093e
add esp, 8
test eax, eax
je 0x48054f
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [0x5ba980]
lea edx, [ebp - 0x220]
lea esi, [edx + 2]
lea ecx, [ecx + 0x5c8]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x480564
sub edx, esi
lea eax, [ebp - 0x220]
sar edx, 1
push edx
push eax
call fcn.00410900
push 0x158
lea eax, [ebp - 0x398]
push 0
push eax
call fcn.005219d0
add esp, 0xc
lea ecx, [ebp - 0x398]
push 0
push 0x71
call fcn.00481a6b
lea ecx, [ebp - 0x2e8]
mov dword [ebp - method.CLoading.virtual_0], vtable.CLoading.0
mov dword [ebp - 0x2f0], 0
call fcn.00483240
lea eax, [ebp - 0x398]
mov dword [ebp - method.CStatic.virtual_0], vtable.CStatic.0
mov ecx, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [0x5ba97c], eax
call fcn.00482018
mov eax, dword [0x5ba980]
mov eax, dword [eax + 0x630]
cmp eax, 3
je 0x48062b
cmp eax, 4
jne 0x480803
push 1
push str.Status
call fcn.0043b1e0
test eax, eax
je 0x4807fb
push 0
push str.onclose
push str.Config
lea eax, [ebp - 0x3d4]
push eax
call fcn.0043bdc0
mov ebx, 1
cmp dword [eax + 0x10], 0
jbe 0x480699
push 0
push str.onclose
push str.Config
lea eax, [ebp - 0x3b4]
push eax
call fcn.0043bdc0
cmp dword [eax + 0x14], 8
jb 0x480682
mov eax, dword [eax]
mov ecx, eax
mov ebx, 3
call fcn.00416ce0
mov byte [ebp - 0x399], 1
test eax, eax
jne 0x4806a0
mov byte [ebp - 0x399], 0
test bl, 2
je 0x480702
mov edx, dword [ebp - 0x3a0]
cmp edx, 8
jb 0x4806e5
mov ecx, dword [ebp - 0x3b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4806db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480a03
push edx
push ecx
call fcn.00497cc1
add esp, 8
xor eax, eax
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x3a0], 7
mov word [ebp - 0x3b4], ax
mov edx, dword [ebp - 0x3c0]
cmp edx, 8
jb 0x480742
mov ecx, dword [ebp - 0x3d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480738
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480a08
push edx
push ecx
call fcn.00497cc1
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c4], 0
mov dword [ebp - 0x3c0], 7
mov word [ebp - 0x3d4], ax
cmp byte [ebp - 0x399], al
je 0x4807fb
push eax
push str.onclose
push str.Config
lea eax, [ebp - 0x3ec]
push eax
call fcn.0043bdc0
cmp dword [eax + 0x14], 8
jb 0x48078a
mov eax, dword [eax]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x3d8]
cmp edx, 8
jb 0x4807de
mov ecx, dword [ebp - 0x3ec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4807d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480a0d
push edx
push ecx
call fcn.00497cc1
add esp, 8
xor eax, eax
mov dword [ebp - 0x3dc], 0
mov dword [ebp - 0x3d8], 7
mov word [ebp - 0x3ec], ax
sub esp, 8
call fcn.0044f530
lea ecx, [ebp - 0x398]
call fcn.0046e490
push 0x18
push str.Option
call fcn.0043b1e0
test eax, eax
jne 0x480823
call fcn.00470b90
mov esi, dword [0x5ba980]
lea eax, [ebp - 0x220]
push 0x208
push 0
push eax
call fcn.005219d0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x103
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
add esi, 0x550
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x480873
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x480446
cmp dword [esi + 0x14], 8
jb 0x48088a
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x3a4], 0
xor eax, eax
mov dword [ebp - 0x3a0], 7
mov word [ebp - 0x3b4], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4808b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x3b4]
call fcn.00410900
lea ecx, [ebp - 0x3b4]
call fcn.00413b80
mov edx, dword [ebp - 0x3a0]
cmp edx, 8
jb 0x480917
mov ecx, dword [ebp - 0x3b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48090d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480a12
push edx
push ecx
call fcn.00497cc1
add esp, 8
xor eax, eax
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x3a0], 7
mov word [ebp - 0x3b4], ax
jmp 0x480446
push 0x10
push 0x59529c
push 0x5952a8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, dword [0x5ba9a8]
mov ebx, dword [0x5ba9ac]
cmp edi, ebx
je 0x4809c1
nop dword [eax]
lea eax, [ebp - 0x240]
xor esi, esi
cmp eax, edi
je 0x480974
mov esi, dword [edi]
mov dword [edi], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4809e3
cmp byte [esi + 0x6c], 0
jne 0x4809e3
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 8]
mov dword [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4809b3
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4809ab
mov eax, dword [ecx]
push esi
jmp 0x4809b1
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
add edi, 8
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
jne 0x480960
mov ecx, dword [0x5ba980]
test ecx, ecx
je 0x4809db
push ecx
call fcn.00480a20
mov dword [0x5ba980], 0
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov edx, 4
lea ecx, [ebp - 0x3f4]
call fcn.00438280
push eax
call fcn.0049b2b0
call fcn.00524999
call fcn.00524999
call fcn.00524999
call fcn.00524999
call fcn.00524999
call fcn.00524999
int3