Function at 0x408650
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478110
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4b1570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x408690
mov dword [ebp - 0x20], 0
jmp 0x40869f
mov eax, dword [ebp - 0x24]
push eax
call fcn.0045fc50
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, 0x4b2990
call fcn.00402000
cmp dword [ebp + 8], 0
jne 0x4086c0
mov dword [ebp - 0x10], 0xffffffff
jmp 0x408723
mov eax, dword [0x4b2990]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x2c], ecx
xor edx, edx
jl 0x4086d5
cmp dword [ebp - 0x2c], 0
jge 0x4086de
mov dword [ebp - 0x10], 0xffffffff
jmp 0x408723
mov eax, dword [0x4b2990]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.004612db
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40870b
mov dword [ebp - 0xb8], 0xffffffff
jmp 0x40871a
mov eax, dword [ebp - 0x28]
sub eax, dword [0x4b2990]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0xffffffff
je 0x408978
mov edx, dword [ebp + 0xc]
mov dword [0x4b2988], edx
mov dword [0x4b2984], 0
cmp dword [0x4b2980], 0
je 0x40875f
mov eax, dword [0x4b2980]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4b2980], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045fc50
add esp, 4
add eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
push edx
mov ecx, 0x4b2990
call fcn.00407610
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, 0x4b2990
call fcn.00408120
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401fc0
mov ecx, 0x4b2990
call fcn.00408ad0
mov edx, 0x480548
test edx, edx
jne 0x4087cc
mov dword [ebp - 0x10], 0xffffffff
jmp 0x408830
mov eax, dword [0x4b2990]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x5c], ecx
xor edx, edx
jl 0x4087e1
cmp dword [ebp - 0x5c], 0
jge 0x4087ea
mov dword [ebp - 0x10], 0xffffffff
jmp 0x408830
mov eax, dword [0x4b2990]
mov dword [ebp - 0x60], eax
push 0x480548
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.004612db
add esp, 8
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x408818
mov dword [ebp - 0xc0], 0xffffffff
jmp 0x408827
mov edx, dword [ebp - 0x58]
sub edx, dword [0x4b2990]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40887d
mov ecx, dword [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x4b2990
call fcn.004078f0
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x78]
push ecx
mov ecx, 0x4b2990
call fcn.00408120
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401fc0
mov ecx, 0x4b2990
call fcn.00408a40
mov edx, dword [0x4b2990]
sub edx, 0x10
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 8]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0x9c]
or ecx, dword [ebp - 0xa0]
jge 0x4088d3
push 0
mov ecx, 0x4b2990
call fcn.004021d0
mov edx, dword [0x4b2990]
mov dword [ebp - 0xa8], edx
push 0x480544
mov eax, dword [ebp - 0xa8]
push eax
call fcn.00460890
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40896c
push 0
push str.parameters_error__or_could_not_open_script_file.
call fcn.00414a60
add esp, 8
mov ecx, dword [0x4b2990]
sub ecx, 0x10
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
mov eax, 1
sub eax, dword [edx + 0xc]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xac]
or eax, dword [ebp - 0xb0]
jge 0x408957
push 0
mov ecx, 0x4b2990
call fcn.004021d0
push 0
mov ecx, dword [0x4b2990]
push ecx
call fcn.00414a60
add esp, 8
xor eax, eax
jmp 0x40897d
mov edx, dword [ebp - 0x14]
push edx
call fcn.00460750
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret