Function at 0x4501e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a5c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a3eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp + 0x10]
call fcn.004062c0
xor ebx, ebx
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], ebx
call fcn.00408030
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
jl 0x450284
push str.REGSERVER
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
cmp eax, ebx
je 0x450284
sub eax, dword [ebp + 0x10]
sar eax, 1
cmp eax, ebx
jle 0x450284
push str.NPSDM_Regserver
call fcn.00403120
mov ecx, dword [ebp + 0x14]
add esp, 4
push ecx
mov ecx, 0x4a4240
call fcn.0044fcc0
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x450424
push str.NPSCDM_Server_Started
call fcn.00403120
mov ecx, dword [ebp + 8]
add esp, 4
push ebx
mov dword [0x4a4274], 0x1f4
mov dword [0x4a4238], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00403cb0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
xor edi, edi
cmp edi, 2
mov dword [ebp - 0x18], edi
jge 0x450379
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4502d8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp + 8]
push ecx
push 0x47ea00
push 0x17
push ebx
push 0x47f2f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x450329
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
cmp esi, ebx
jl 0x45031a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x47ef60
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
jge 0x450344
cmp esi, ebx
mov dword [ebp - 0x14], ebx
jge 0x450344
push esi
cmp edi, ebx
jne 0x45033a
call fcn.004650f0
push 4
call fcn.0044ffd0
add esp, 8
mov dword [ebp - 4], 1
inc edi
jmp 0x4502b9
cmp byte [0x4a4280], bl
je 0x45039e
or esi, 0xffffffff
jmp 0x4503cf
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp + 8]
push edx
push eax
mov ecx, 0x4a4240
call fcn.0044fb40
cmp al, 1
jne 0x4503ca
mov eax, dword [ebp + 0x14]
push eax
mov ecx, 0x4a4240
call fcn.0044f9f0
jmp 0x4503cd
mov eax, dword [ebp + 8]
mov esi, eax
call fcn.00403b40
call fcn.004374a0
call fcn.0041b650
mov ecx, eax
call fcn.0041b990
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.NPSCDM_Server_Terminated
call fcn.00403120
mov eax, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x45040a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450430
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10