Function at 0x480320
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 0x567280
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.004810d1
mov esi, eax
add esp, 4
test esi, esi
je 0x480395
push 0xad8
push 0
push esi
call fcn.00521a60
add esp, 0xc
mov ecx, esi
call fcn.0043a5d0
jmp 0x480397
xor eax, eax
push 0
mov dword [0x5ba980], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4809c9
push 0
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
push 0
push esi
call fcn.0048bf7f
test eax, eax
je 0x4809c9
push ebx
call fcn.004b2c30
mov eax, dword [0x5ba980]
add esp, 4
mov dword [eax], ebx
call fcn.0043d0a0
test eax, eax
jne 0x480441
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.00521a60
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 0x48048c
mov dword [0x5ba978], 0
jmp 0x4804b5
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 0x480538
push 0x10
push 0x58d1e8
push 0x595328
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x480516
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48050c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480a89
push edx
push ecx
call fcn.00497d51
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
jmp 0x4809dd
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00521a60
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x4805c5
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x4805a5
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48059b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480a8e
push edx
push ecx
call fcn.00497d51
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.00497d40
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x220]
push 0x5c
push eax
call fcn.005209ce
add esp, 8
test eax, eax
je 0x4805df
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 0x4805f4
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.00521a60
add esp, 0xc
lea ecx, [ebp - 0x398]
push 0
push 0x71
call fcn.00481afb
lea ecx, [ebp - 0x2e8]
mov dword [ebp - method.CLoading.virtual_0], vtable.CLoading.0
mov dword [ebp - 0x2f0], 0
call fcn.004832d0
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.004820a8
mov eax, dword [0x5ba980]
mov eax, dword [eax + 0x630]
cmp eax, 3
je 0x4806bb
cmp eax, 4
jne 0x480893
push 1
push str.Status
call fcn.0043b1e0
test eax, eax
je 0x48088b
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 0x480729
push 0
push str.onclose
push str.Config
lea eax, [ebp - 0x3b4]
push eax
call fcn.0043bdc0
cmp dword [eax + 0x14], 8
jb 0x480712
mov eax, dword [eax]
mov ecx, eax
mov ebx, 3
call fcn.00416ce0
mov byte [ebp - 0x399], 1
test eax, eax
jne 0x480730
mov byte [ebp - 0x399], 0
test bl, 2
je 0x480792
mov edx, dword [ebp - 0x3a0]
cmp edx, 8
jb 0x480775
mov ecx, dword [ebp - 0x3b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48076b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480a93
push edx
push ecx
call fcn.00497d51
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 0x4807d2
mov ecx, dword [ebp - 0x3d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4807c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480a98
push edx
push ecx
call fcn.00497d51
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 0x48088b
push eax
push str.onclose
push str.Config
lea eax, [ebp - 0x3ec]
push eax
call fcn.0043bdc0
cmp dword [eax + 0x14], 8
jb 0x48081a
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 0x48086e
mov ecx, dword [ebp - 0x3ec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480864
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480a9d
push edx
push ecx
call fcn.00497d51
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.0044f5c0
lea ecx, [ebp - 0x398]
call fcn.0046e520
push 0x18
push str.Option
call fcn.0043b1e0
test eax, eax
jne 0x4808b3
call fcn.00470c20
mov esi, dword [0x5ba980]
lea eax, [ebp - 0x220]
push 0x208
push 0
push eax
call fcn.00521a60
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 0x480903
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4804d6
cmp dword [esi + 0x14], 8
jb 0x48091a
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 0x480940
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 0x4809a7
mov ecx, dword [ebp - 0x3b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48099d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480aa2
push edx
push ecx
call fcn.00497d51
add esp, 8
xor eax, eax
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x3a0], 7
mov word [ebp - 0x3b4], ax
jmp 0x4804d6
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 0x480a51
nop dword [eax]
lea eax, [ebp - 0x240]
xor esi, esi
cmp eax, edi
je 0x480a04
mov esi, dword [edi]
mov dword [edi], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x480a73
cmp byte [esi + 0x6c], 0
jne 0x480a73
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 0x480a43
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x480a3b
mov eax, dword [ecx]
push esi
jmp 0x480a41
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
add edi, 8
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
jne 0x4809f0
mov ecx, dword [0x5ba980]
test ecx, ecx
je 0x480a6b
push ecx
call fcn.00480ab0
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.0049b340
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
int3