Function at 0x401490
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 0x4014c4
pop edi
mov dword [ebp + 0xc0], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
call fcn.00422aa2
mov eax, dword [eax + 8]
mov dword [0x433b70], 0x4310d0
push eax
push 0x433c50
push 0x433b00
mov dword [0x433c74], 0x433b00
mov dword [0x433b00], 0x84
mov dword [0x433b64], 0x300
call fcn.00401710
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x433b84], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cx, word [0x4310f8]
mov dl, byte [0x4310fa]
mov word [esp + 0x10], cx
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, 0x433b00
mov byte [esp + 0x1a], dl
call fcn.00401310
mov esi, eax
cmp esi, ebx
je 0x401575
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x4015b7
push 0x4310e0
push esi
call edi
test eax, eax
je 0x4015d8
lea edx, [esp + 0x10]
mov ecx, 0x433b00
push edx
push esi
call fcn.00401310
mov esi, eax
cmp esi, ebx
jne 0x401547
mov edx, 0x433b00
test edx, edx
je 0x4016d8
mov esi, dword [0x433b10]
xor edi, edi
cmp dword [esi], ebx
je 0x4016ee
mov ebp, dword [sym.imp.ole32.dll_CoRegisterClassObject]
lea ebx, [esi + 0x14]
test edi, edi
jne 0x4016d0
mov eax, dword [esi + 8]
mov dword [esp + 0x14], edi
test eax, eax
jne 0x401679
jmp 0x4016ae
push ebx
push ebx
push ebx
push 0x67
push 0x433b00
call fcn.00401a30
push ebx
push 1
push 0x433b00
call fcn.004019a0
jmp 0x401659
push ebx
push ebx
push 1
push 0x67
push 0x433b00
call fcn.00401a30
mov eax, 0x433b00
test eax, eax
je 0x401659
mov esi, dword [0x433b10]
xor edi, edi
cmp dword [esi], ebx
je 0x40164e
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x40160a
call eax
test eax, eax
jne 0x401635
push 1
call dword [esi + 4]
mov edi, eax
cmp edi, ebx
jl 0x401659
cmp dword [0x433b00], 0x84
jne 0x401635
push 1
call dword [esi + 0x1c]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00401870
mov edi, eax
cmp edi, ebx
jl 0x401659
cmp dword [0x433b00], 0x64
jne 0x401643
add esi, 0x1c
jmp 0x401646
add esi, 0x24
cmp dword [esi], ebx
jne 0x4015fd
cmp edi, ebx
jl 0x401659
push ebx
push 0x433b00
call fcn.00401eb0
push 0x433b00
mov dword [ebp + 0xc0], ebx
call fcn.004017a0
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 0x42a330
push edx
call eax
mov edi, eax
test edi, edi
jl 0x4016a0
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 0x4016ae
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp dword [0x433b00], 0x64
jne 0x4016bf
add esi, 0x1c
add ebx, 0x1c
jmp 0x4016c5
add esi, 0x24
add ebx, 0x24
cmp dword [esi], 0
jne 0x40159b
test edi, edi
jge 0x4016ee
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