Function at 0x4529a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d270
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a6eb0]
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.00406310
xor ebx, ebx
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], ebx
call fcn.00408420
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
jl 0x452a44
push str.REGSERVER
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
cmp eax, ebx
je 0x452a44
sub eax, dword [ebp + 0x10]
sar eax, 1
cmp eax, ebx
jle 0x452a44
push str.NPSDM_Regserver
call fcn.00403170
mov ecx, dword [ebp + 0x14]
add esp, 4
push ecx
mov ecx, 0x4a7270
call fcn.00452480
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 0x452be4
push str.NPSCDM_Server_Started
call fcn.00403170
mov ecx, dword [ebp + 8]
add esp, 4
push ebx
mov dword [0x4a72a4], 0x1f4
mov dword [0x4a7260], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00403d00
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
xor edi, edi
cmp edi, 2
mov dword [ebp - 0x18], edi
jge 0x452b39
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x452a98
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp + 8]
push ecx
push 0x481a40
push 0x17
push ebx
push 0x4823c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x452ae9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
cmp esi, ebx
jl 0x452ada
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x481fd8
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 0x452b04
cmp esi, ebx
mov dword [ebp - 0x14], ebx
jge 0x452b04
push esi
cmp edi, ebx
jne 0x452afa
call fcn.00467970
push 4
call fcn.00452790
add esp, 8
mov dword [ebp - 4], 1
inc edi
jmp 0x452a79
cmp byte [0x4a72b0], bl
je 0x452b5e
or esi, 0xffffffff
jmp 0x452b8f
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp + 8]
push edx
push eax
mov ecx, 0x4a7270
call fcn.00452300
cmp al, 1
jne 0x452b8a
mov eax, dword [ebp + 0x14]
push eax
mov ecx, 0x4a7270
call fcn.004521b0
jmp 0x452b8d
mov eax, dword [ebp + 8]
mov esi, eax
call fcn.00403b90
call fcn.00439610
call fcn.0041d6a0
mov ecx, eax
call fcn.0041d9e0
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.NPSCDM_Server_Terminated
call fcn.00403170
mov eax, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x452bca
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 0x452bf0
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