Function at 0x10035d3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push esi
mov dword [ebp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
mov ebx, 0x100dc90
mov dword [0x100dc90], 0x64
mov dword [0x100dcf4], esi
push 0x100b160
push ebx
call fcn.01002f2c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x100b48c
lea edi, [ebp - 0x10]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 1
mov dword [0x100dcf8], eax
pop edi
lea eax, [ebp - 0x10]
push eax
xor esi, esi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
call fcn.010034a7
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1003672
xor eax, eax
cmp dword [ebp - 0xb0], edi
sete al
mov dword [0x100dcfc], eax
mov edi, str.BB96A195_D2FA_11d0_BB28_0800365B0E03
push edi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, esi
mov dword [0x100dd00], eax
je 0x10036a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10036bd
mov eax, dword [0x100dd00]
cmp eax, esi
je 0x10036a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [0x100dd00], eax
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x1003767
mov edi, dword [ebp + 0x10]
push 0xb
push str.UnregServer
push edi
call fcn.01004710
add esp, 0xc
test eax, eax
jne 0x10036f0
push esi
push esi
push 0x64
push ebx
call fcn.01002b9b
push esi
push ebx
call fcn.010030a1
jmp 0x1003721
push 9
push str.RegServer
push edi
call fcn.01004710
add esp, 0xc
test eax, eax
jne 0x1003726
push esi
push 1
push 0x64
push ebx
call fcn.01002b9b
call fcn.0100339f
cmp eax, esi
jl 0x100374f
push esi
push 1
push ebx
call fcn.01003035
mov dword [ebp - 0xc], eax
jmp 0x100374f
push 0x10
push str.UnlockAndRelease
push edi
call fcn.01004710
add esp, 0xc
test eax, eax
jne 0x1003752
cmp dword [0x100dd00], esi
je 0x100374f
cmp dword [0x100dcfc], esi
je 0x100374f
call fcn.01003544
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.010034a7
cmp eax, esi
mov dword [ebp + 0x10], eax
jne 0x10036c6
cmp dword [ebp - 4], esi
je 0x10037dd
cmp dword [0x100dcfc], esi
je 0x1003786
push dword [ebp + 8]
call fcn.010034e3
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x1003786
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x10037dd
push 1
push 4
push ebx
call fcn.01002f7e
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0xff
push 0xfa
push esi
push 0x100dd00
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x10037d7
cmp eax, 0xffffffff
je 0x10037d7
push 1
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
call edi
test eax, eax
je 0x100379b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x10037bc
push ebx
call fcn.01003002
mov eax, dword [0x100dd00]
cmp eax, esi
je 0x10037ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x10037fb
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10