Function at 0x410510
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 + 0xc8], 1
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x410544
pop edi
mov dword [ebp + 0xc8], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
mov dword [0x445f60], 0x4443a8
push eax
push 0x445f78
push 0x445ef0
mov dword [0x445fb0], 0x445ef0
mov dword [0x445ef0], 0x84
mov dword [0x445f54], 0x300
call fcn.00410820
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x445f74], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cx, word [0x4443e8]
mov dl, byte [0x4443ea]
mov word [esp + 0x10], cx
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, 0x445ef0
mov byte [esp + 0x1a], dl
call fcn.00410390
mov esi, eax
cmp esi, ebx
je 0x4105f5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x410637
push str.RegServer
push esi
call edi
test eax, eax
je 0x410658
lea edx, [esp + 0x10]
mov ecx, 0x445ef0
push edx
push esi
call fcn.00410390
mov esi, eax
cmp esi, ebx
jne 0x4105c7
mov edx, 0x445ef0
test edx, edx
je 0x410758
mov esi, dword [0x445f00]
xor edi, edi
cmp dword [esi], ebx
je 0x41076e
mov ebp, dword [sym.imp.ole32.dll_CoRegisterClassObject]
lea ebx, [esi + 0x14]
test edi, edi
jne 0x410750
mov eax, dword [esi + 8]
mov dword [esp + 0x14], edi
test eax, eax
jne 0x4106f9
jmp 0x41072e
push ebx
push ebx
push ebx
push 0x7f
push 0x445ef0
call fcn.00410b60
push ebx
push 1
push 0x445ef0
call fcn.00410ad0
jmp 0x4106d9
push ebx
push ebx
push 1
push 0x7f
push 0x445ef0
call fcn.00410b60
mov eax, 0x445ef0
test eax, eax
je 0x4106d9
mov esi, dword [0x445f00]
xor edi, edi
cmp dword [esi], ebx
je 0x4106ce
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x41068a
call eax
test eax, eax
jne 0x4106b5
push 1
call dword [esi + 4]
mov edi, eax
cmp edi, ebx
jl 0x4106d9
cmp dword [0x445ef0], 0x84
jne 0x4106b5
push 1
call dword [esi + 0x1c]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00410980
mov edi, eax
cmp edi, ebx
jl 0x4106d9
cmp dword [0x445ef0], 0x64
jne 0x4106c3
add esi, 0x1c
jmp 0x4106c6
add esi, 0x24
cmp dword [esi], ebx
jne 0x41067d
cmp edi, ebx
jl 0x4106d9
push ebx
push 0x445ef0
call fcn.00411070
push 0x445ef0
mov dword [ebp + 0xc8], ebx
call fcn.004108b0
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 0x43a268
push edx
call eax
mov edi, eax
test edi, edi
jl 0x410720
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 0x41072e
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp dword [0x445ef0], 0x64
jne 0x41073f
add esi, 0x1c
add ebx, 0x1c
jmp 0x410745
add esi, 0x24
add ebx, 0x24
cmp dword [esi], 0
jne 0x41061b
test edi, edi
jge 0x41076e
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov dword [ebp + 0xc8], 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