Function at 0x47cd20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ef70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
mov dword [ebp - 0x18], edi
mov dword [edi + 0x2d4], 1
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x47cd76
mov dword [edi + 0x2d4], ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
mov dword [0x5f3d78], 0x5e5948
push eax
push 0x5e57e0
push 0x5f3d08
mov dword [0x5f3d98], 0x5f3d08
mov dword [0x5f3d08], 0x84
mov dword [0x5f3d6c], 0x300
call fcn.0047d3d0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x5f3d8c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cx, word [0x5e6004]
mov dl, byte [0x5e6006]
mov word [ebp - 0x14], cx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, 0x5f3d08
mov byte [ebp - 0x12], dl
call fcn.0047ccd0
mov esi, eax
cmp esi, ebx
je 0x47ce2e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x47ce9e
push str.RegServer
push esi
call edi
test eax, eax
je 0x47cebc
lea edx, [ebp - 0x14]
mov ecx, 0x5f3d08
push edx
push esi
call fcn.0047ccd0
mov esi, eax
cmp esi, ebx
jne 0x47cdf6
mov edi, dword [ebp - 0x18]
push 1
push 4
push 0x5f3d08
call fcn.0047d460
cmp eax, ebx
jge 0x47cf33
push ebx
push ebx
push 1
push 0x70
push 0x5f3d08
call fcn.0047d850
push ebx
push 1
push 0x5f3d08
call fcn.0047d710
mov ecx, 0x5f3d08
test ecx, ecx
je 0x47cf14
mov esi, dword [0x5f3d18]
xor eax, eax
cmp dword [esi], ebx
je 0x47cf33
cmp eax, ebx
jne 0x47cf12
push 1
push 4
push esi
call fcn.0047d0c0
cmp dword [0x5f3d08], 0x64
jne 0x47cf05
add esi, 0x1c
jmp 0x47cf08
push ebx
push ebx
push ebx
push 0x70
push 0x5f3d08
call fcn.0047d850
push ebx
push 1
push 0x5f3d08
call fcn.0047d7c0
jmp 0x47ced9
push ebx
push ebx
push 1
push 0x70
push 0x5f3d08
call fcn.0047d850
push ebx
push 1
push 0x5f3d08
call fcn.0047d710
mov eax, dword [ebp - 0x18]
push 0x5f3d08
mov dword [eax + 0x2d4], ebx
call fcn.0047d500
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 0x24
cmp dword [esi], ebx
jne 0x47ce7e
cmp eax, ebx
jge 0x47cf33
mov dword [edi + 0x2d4], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20]
xor esi, esi
push edx
push str._xqi
push 7
push ebx
push 0x5974c0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x47cf77
mov ecx, dword [eax]
mov esi, 1
push eax
mov dword [ebp - 0x24], esi
call dword [ecx + 8]
jmp 0x47cf77
cmp esi, ebx
mov dword [ebp - 4], 0xffffffff
jne 0x47d0a6
push ebx
push ebx
push 1
push 0x70
push 0x5f3d08
call fcn.0047d850
mov edx, 0x5f3d08
test edx, edx
je 0x47d087
mov esi, dword [0x5f3d18]
xor edi, edi
cmp dword [esi], ebx
je 0x47d000
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x47cfbc
call eax
test eax, eax
jne 0x47cfe7
push 1
call dword [esi + 4]
mov edi, eax
cmp edi, ebx
jl 0x47d00b
cmp dword [0x5f3d08], 0x84
jne 0x47cfe7
push 1
call dword [esi + 0x1c]
push eax
mov eax, dword [esi]
push eax
call fcn.0047d5d0
mov edi, eax
cmp edi, ebx
jl 0x47d00b
cmp dword [0x5f3d08], 0x64
jne 0x47cff5
add esi, 0x1c
jmp 0x47cff8
add esi, 0x24
cmp dword [esi], ebx
jne 0x47cfaf
cmp edi, ebx
jl 0x47d00b
push ebx
push 0x5f3d08
call fcn.0047dd40
mov esi, dword [0x5f3d18]
xor edi, edi
cmp dword [esi], ebx
je 0x47d0a6
lea ebx, [esi + 0x14]
test edi, edi
jne 0x47d080
mov eax, dword [esi + 8]
mov dword [ebp - 0x1c], edi
test eax, eax
je 0x47d062
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x1c]
push ecx
push 0x5be360
push edx
call eax
mov edi, eax
test edi, edi
jl 0x47d055
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi]
push ebx
push 1
push 4
push eax
push ecx
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
mov edi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47d062
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp dword [0x5f3d08], 0x64
jne 0x47d073
add esi, 0x1c
add ebx, 0x1c
jmp 0x47d079
add esi, 0x24
add ebx, 0x24
cmp dword [esi], 0
jne 0x47d01e
test edi, edi
jge 0x47d0a6
mov edi, dword [ebp - 0x18]
xor ebx, ebx
mov dword [edi + 0x2d4], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret