Function at 0x452410
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47caf0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a5eb0]
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.00406300
xor ebx, ebx
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], ebx
call fcn.00408200
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
jl 0x4524b4
push str.REGSERVER
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
cmp eax, ebx
je 0x4524b4
sub eax, dword [ebp + 0x10]
sar eax, 1
cmp eax, ebx
jle 0x4524b4
push str.NPSDM_Regserver
call fcn.00403170
mov ecx, dword [ebp + 0x14]
add esp, 4
push ecx
mov ecx, 0x4a6270
call fcn.00451ef0
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 0x452654
push str.NPSCDM_Server_Started
call fcn.00403170
mov ecx, dword [ebp + 8]
add esp, 4
push ebx
mov dword [0x4a62a4], 0x1f4
mov dword [0x4a6260], 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 0x4525a9
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x452508
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp + 8]
push ecx
push 0x480a40
push 0x17
push ebx
push 0x481370
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x452559
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
cmp esi, ebx
jl 0x45254a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x480fd8
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 0x452574
cmp esi, ebx
mov dword [ebp - 0x14], ebx
jge 0x452574
push esi
cmp edi, ebx
jne 0x45256a
call fcn.004671f0
push 4
call fcn.00452200
add esp, 8
mov dword [ebp - 4], 1
inc edi
jmp 0x4524e9
cmp byte [0x4a62b0], bl
je 0x4525ce
or esi, 0xffffffff
jmp 0x4525ff
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp + 8]
push edx
push eax
mov ecx, 0x4a6270
call fcn.00451d70
cmp al, 1
jne 0x4525fa
mov eax, dword [ebp + 0x14]
push eax
mov ecx, 0x4a6270
call fcn.00451c20
jmp 0x4525fd
mov eax, dword [ebp + 8]
mov esi, eax
call fcn.00403b90
call fcn.004386d0
call fcn.0041cb50
mov ecx, eax
call fcn.0041ce90
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 0x45263a
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 0x452660
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