Function at 0x401820
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
push ebx
mov dword [esp + 0x1c], ebp
mov dword [ebp + 0xc0], 1
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x401854
pop edi
mov dword [ebp + 0xc0], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
call fcn.0043c1be
mov eax, dword [eax + 8]
mov dword [0x95c618], 0x4520e0
push eax
push 0x95c6f8
push 0x95c5a8
mov dword [0x95c71c], 0x95c5a8
mov dword [0x95c5a8], 0x84
mov dword [0x95c60c], 0x300
call fcn.00401b70
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x95c62c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cx, word [0x452108]
mov dl, byte [0x45210a]
mov word [esp + 0x10], cx
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, 0x95c5a8
mov byte [esp + 0x1a], dl
call fcn.004016a0
mov esi, eax
cmp esi, ebx
je 0x401905
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x401947
push 0x4520f0
push esi
call edi
test eax, eax
je 0x401968
lea edx, [esp + 0x10]
mov ecx, 0x95c5a8
push edx
push esi
call fcn.004016a0
mov esi, eax
cmp esi, ebx
jne 0x4018d7
mov edx, 0x95c5a8
test edx, edx
je 0x401a68
mov esi, dword [0x95c5b8]
xor edi, edi
cmp dword [esi], ebx
je 0x401a7e
mov ebp, dword [sym.imp.ole32.dll_CoRegisterClassObject]
lea ebx, [esi + 0x14]
test edi, edi
jne 0x401a60
mov eax, dword [esi + 8]
mov dword [esp + 0x14], edi
test eax, eax
jne 0x401a09
jmp 0x401a3e
push ebx
push ebx
push ebx
push 0x67
push 0x95c5a8
call fcn.00401e90
push ebx
push 1
push 0x95c5a8
call fcn.00401e00
jmp 0x4019e9
push ebx
push ebx
push 1
push 0x67
push 0x95c5a8
call fcn.00401e90
mov eax, 0x95c5a8
test eax, eax
je 0x4019e9
mov esi, dword [0x95c5b8]
xor edi, edi
cmp dword [esi], ebx
je 0x4019de
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x40199a
call eax
test eax, eax
jne 0x4019c5
push 1
call dword [esi + 4]
mov edi, eax
cmp edi, ebx
jl 0x4019e9
cmp dword [0x95c5a8], 0x84
jne 0x4019c5
push 1
call dword [esi + 0x1c]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00401cd0
mov edi, eax
cmp edi, ebx
jl 0x4019e9
cmp dword [0x95c5a8], 0x64
jne 0x4019d3
add esi, 0x1c
jmp 0x4019d6
add esi, 0x24
cmp dword [esi], ebx
jne 0x40198d
cmp edi, ebx
jl 0x4019e9
push ebx
push 0x95c5a8
call fcn.00402310
push 0x95c5a8
mov dword [ebp + 0xc0], ebx
call fcn.00401c00
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0x448cb8
push edx
call eax
mov edi, eax
test edi, edi
jl 0x401a30
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push ebx
push 1
push 4
push eax
push ecx
call ebp
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401a3e
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp dword [0x95c5a8], 0x64
jne 0x401a4f
add esi, 0x1c
add ebx, 0x1c
jmp 0x401a55
add esi, 0x24
add ebx, 0x24
cmp dword [esi], 0
jne 0x40192b
test edi, edi
jge 0x401a7e
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov dword [ebp + 0xc0], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret