Function at 0x401ce0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x24
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ebx, ebx
mov esi, eax
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [0x40e390], 0x40b040
mov dword [0x40d708], 0x40e320
mov eax, dword [esp + 0x34]
mov dword [0x40e320], 0x84
push eax
push 0x40b100
push 0x40e320
mov dword [0x40e384], 0x300
call fcn.00402ac0
mov ecx, 0x4091a8
test ecx, ecx
je 0x401d6a
mov edx, dword [0x4091a8]
mov eax, dword [0x4091ac]
mov ecx, dword [0x4091b0]
mov dword [0x40d6f8], edx
mov edx, dword [0x4091b4]
mov dword [0x40d6fc], eax
mov dword [0x40d700], ecx
mov dword [0x40d704], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov cl, byte [0x40b1a2]
lea edx, [esp + 0xc]
mov dword [0x40e3a4], eax
mov ax, word [0x40b1a0]
push edx
push esi
mov word [esp + 0x14], ax
mov byte [esp + 0x16], cl
mov dword [esp + 0x18], ebx
call fcn.00401c90
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x401ddc
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x401e78
push str.RegServer
push esi
call edi
test eax, eax
je 0x401e9d
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00401c90
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x401da8
mov ecx, 0x40e320
call fcn.004015f0
test al, al
je 0x401f53
mov ecx, 0x40e320
call fcn.00401590
mov ecx, 0x40e320
test ecx, ecx
je 0x401ed5
mov esi, dword [0x40e330]
xor edi, edi
cmp dword [esi], ebx
je 0x401ed5
mov ebx, dword [sym.imp.ole32.dll_CoRegisterClassObject]
push ebp
lea ebp, [esi + 0x14]
test edi, edi
jne 0x401ed2
mov eax, dword [esi + 8]
mov dword [esp + 0x38], edi
cmp eax, edi
je 0x401e67
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x38]
push edx
push 0x4092d0
push ecx
call eax
mov edi, eax
test edi, edi
jl 0x401e59
mov edx, dword [esp + 0x38]
mov eax, dword [esi]
push ebp
push 1
push 4
push edx
push eax
call ebx
mov edi, eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x401e67
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [0x40e320], 0x64
jne 0x401ec3
add esi, 0x1c
add ebp, 0x1c
jmp 0x401ec9
push ebx
push ebx
push ebx
push 0x64
push 0x40e320
call fcn.00402dc0
push ebx
push 1
push 0x40e320
call fcn.00402d30
mov dword [esp + 0x10], eax
jmp 0x401f53
push ebx
push ebx
push 1
push 0x64
push 0x40e320
call fcn.00402dc0
push ebx
push 1
push 0x40e320
call fcn.00402b50
mov dword [esp + 0x10], eax
jmp 0x401f53
add esi, 0x24
add ebp, 0x24
cmp dword [esi], 0
jne 0x401e1f
xor ebx, ebx
pop ebp
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea edx, [esp + 0x1c]
push ebx
push edx
call esi
test eax, eax
je 0x401f04
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x14]
push eax
call edi
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
call esi
test eax, eax
jne 0x401eef
mov ecx, 0x40e320
call fcn.004017d0
mov edx, 0x40e320
test edx, edx
je 0x401f48
mov esi, dword [0x40e330]
xor eax, eax
cmp dword [esi], ebx
je 0x401f48
mov edi, dword [sym.imp.ole32.dll_CoRevokeClassObject]
cmp eax, ebx
jne 0x401f48
mov eax, dword [esi + 0x14]
push eax
call edi
cmp dword [0x40e320], 0x64
jne 0x401f41
add esi, 0x1c
jmp 0x401f44
add esi, 0x24
cmp dword [esi], ebx
jne 0x401f29
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x40e320
test ecx, ecx
je 0x402018
mov esi, dword [0x40e330]
cmp esi, ebx
je 0x401f9b
cmp dword [esi], ebx
je 0x401f9b
mov edi, 0x64
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x401f80
mov edx, dword [eax]
push eax
call dword [edx + 8]
push ebx
mov dword [esi + 0x10], ebx
call dword [esi + 0x20]
cmp dword [0x40e320], edi
jne 0x401f94
add esi, 0x1c
jmp 0x401f97
add esi, 0x24
cmp dword [esi], ebx
jne 0x401f73
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x40e33c
call esi
push 0x40e354
call esi
push 0x40e36c
call esi
mov esi, dword [0x40e3a0]
cmp esi, ebx
je 0x401fd8
mov eax, dword [esi + 4]
push eax
call dword [esi]
mov edi, dword [esi + 8]
push esi
call fcn.00403900
add esp, 4
cmp edi, ebx
mov esi, edi
jne 0x401fc0
cmp dword [0x40e338], ebx
je 0x402018
mov al, byte [0x40e38c]
test al, al
je 0x402018
mov eax, dword [0x40e398]
mov edi, dword [sym.imp.KERNEL32.dll_HeapDestroy]
cmp eax, ebx
je 0x402010
xor esi, esi
mov ecx, dword [0x40e398]
mov edx, dword [ecx + esi*4]
push edx
call edi
mov eax, dword [0x40e394]
inc esi
cmp esi, eax
jbe 0x401ffa
mov eax, dword [0x40e338]
push eax
call edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0x10