Function at 0x40a3d0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x24
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
mov esi, eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [0x427070], 0x4261f0
mov dword [0x426fe8], 0x427000
mov ebx, dword [esp + 0x34]
mov dword [0x427000], 0x84
push ebx
push 0x4261a8
push 0x427000
mov dword [0x427064], 0x300
call fcn.0040cd10
mov eax, 0x4215c0
test eax, eax
je 0x40a459
mov ecx, dword [0x4215c0]
mov edx, dword [0x4215c4]
mov eax, dword [0x4215c8]
mov dword [0x426ff0], ecx
mov ecx, dword [0x4215cc]
mov dword [0x426ff4], edx
mov dword [0x426ff8], eax
mov dword [0x426ffc], ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dx, word [0x426218]
lea ecx, [esp + 0x10]
mov dword [0x427084], eax
mov al, byte [0x42621a]
push ecx
push esi
mov word [esp + 0x18], dx
mov byte [esp + 0x1a], al
mov dword [esp + 0x1c], 0
mov edi, 1
call fcn.0040a370
mov esi, eax
add esp, 8
test esi, esi
je 0x40a513
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call ebp
test eax, eax
je 0x40a4cf
push 0x426200
push esi
call ebp
test eax, eax
je 0x40a4ef
lea edx, [esp + 0x10]
push edx
push esi
call fcn.0040a370
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a4a1
jmp 0x40a513
push 0
push 0
push 0x64
push 0x427000
call fcn.0040abf0
push 0
push 1
push 0x427000
call fcn.0040cf90
jmp 0x40a50d
push 0
push 1
push 0x64
push 0x427000
call fcn.0040abf0
push 0
push 1
push 0x427000
call fcn.0040cda0
mov dword [esp + 0x14], eax
xor edi, edi
test edi, edi
mov dword [0x4270d4], ebx
je 0x40a645
mov ecx, 0x427000
call fcn.0040a310
mov eax, 0x427000
test eax, eax
je 0x40a5aa
mov esi, dword [0x427010]
xor edi, edi
cmp dword [esi], 0
je 0x40a5aa
mov ebx, dword [sym.imp.ole32.dll_CoRegisterClassObject]
lea ebp, [esi + 0x14]
test edi, edi
jne 0x40a5aa
mov eax, dword [esi + 8]
mov dword [esp + 0x38], edi
cmp eax, edi
je 0x40a58e
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x38]
push ecx
push 0x421bc4
push edx
call eax
mov edi, eax
test edi, edi
jl 0x40a580
mov eax, dword [esp + 0x38]
mov ecx, dword [esi]
push ebp
push 1
push 4
push eax
push ecx
call ebx
mov edi, eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40a58e
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp dword [0x427000], 0x64
jne 0x40a59f
add esi, 0x1c
add ebp, 0x1c
jmp 0x40a5a5
add esi, 0x24
add ebp, 0x24
cmp dword [esi], 0
jne 0x40a54a
push 0x40a3c0
push 0x493e0
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebp, eax
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
je 0x40a5f5
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0x18]
push ecx
call edi
push 0
push 0
lea edx, [esp + 0x20]
push 0
push edx
call esi
test eax, eax
jne 0x40a5dd
push ebp
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, 0x427000
test eax, eax
je 0x40a63a
mov esi, dword [0x427010]
xor eax, eax
cmp dword [esi], 0
je 0x40a63a
mov edi, dword [sym.imp.ole32.dll_CoRevokeClassObject]
test eax, eax
jne 0x40a63a
mov ecx, dword [esi + 0x14]
push ecx
call edi
cmp dword [0x427000], 0x64
jne 0x40a632
add esi, 0x1c
jmp 0x40a635
add esi, 0x24
cmp dword [esi], 0
jne 0x40a61a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x427000
pop ebp
test edx, edx
je 0x40a70d
mov esi, dword [0x427010]
xor ebx, ebx
cmp esi, ebx
je 0x40a690
cmp dword [esi], ebx
je 0x40a690
mov edi, 0x64
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x40a675
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
mov dword [esi + 0x10], ebx
call dword [esi + 0x20]
cmp dword [0x427000], edi
jne 0x40a689
add esi, 0x1c
jmp 0x40a68c
add esi, 0x24
cmp dword [esi], ebx
jne 0x40a668
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x42701c
call esi
push 0x427034
call esi
push 0x42704c
call esi
mov esi, dword [0x427080]
cmp esi, ebx
je 0x40a6cd
mov edx, dword [esi + 4]
push edx
call dword [esi]
mov edi, dword [esi + 8]
push esi
call fcn.0041e706
add esp, 4
cmp edi, ebx
mov esi, edi
jne 0x40a6b5
cmp dword [0x427018], ebx
je 0x40a70d
mov al, byte [0x42706c]
test al, al
je 0x40a70d
mov eax, dword [0x427078]
mov edi, dword [sym.imp.KERNEL32.dll_HeapDestroy]
cmp eax, ebx
je 0x40a704
xor esi, esi
mov eax, dword [0x427078]
mov ecx, dword [eax + esi*4]
push ecx
call edi
mov eax, dword [0x427074]
inc esi
cmp esi, eax
jbe 0x40a6ef
mov edx, dword [0x427018]
push edx
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