Function at 0x100349e
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, 0x100bc70
mov dword [0x100bc70], 0x64
mov dword [0x100bcd4], esi
push 0x1009160
push ebx
call fcn.01002df7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x100948c
lea edi, [ebp - 0x10]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 1
mov dword [0x100bcd8], 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.01003372
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 0x100353d
xor eax, eax
cmp dword [ebp - 0xb0], edi
sete al
mov dword [0x100bcdc], 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 [0x100bce0], eax
je 0x1003573
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1003588
mov eax, dword [0x100bce0]
cmp eax, esi
je 0x1003573
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [0x100bce0], eax
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x1003632
mov edi, dword [ebp + 0x10]
push 0xb
push str.UnregServer
push edi
call fcn.010040c0
add esp, 0xc
test eax, eax
jne 0x10035bb
push esi
push esi
push 0x64
push ebx
call fcn.01002aa6
push esi
push ebx
call fcn.01002f6c
jmp 0x10035ec
push 9
push str.RegServer
push edi
call fcn.010040c0
add esp, 0xc
test eax, eax
jne 0x10035f1
push esi
push 1
push 0x64
push ebx
call fcn.01002aa6
call fcn.0100326a
cmp eax, esi
jl 0x100361a
push esi
push 1
push ebx
call fcn.01002f00
mov dword [ebp - 0xc], eax
jmp 0x100361a
push 0x10
push str.UnlockAndRelease
push edi
call fcn.010040c0
add esp, 0xc
test eax, eax
jne 0x100361d
cmp dword [0x100bce0], esi
je 0x100361a
cmp dword [0x100bcdc], esi
je 0x100361a
call fcn.0100340f
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.01003372
cmp eax, esi
mov dword [ebp + 0x10], eax
jne 0x1003591
cmp dword [ebp - 4], esi
je 0x10036a8
cmp dword [0x100bcdc], esi
je 0x1003651
push dword [ebp + 8]
call fcn.010033ae
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x1003651
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x10036a8
push 1
push 4
push ebx
call fcn.01002e49
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0xff
push 0xfa
push esi
push 0x100bce0
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x10036a2
cmp eax, 0xffffffff
je 0x10036a2
push 1
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
call edi
test eax, eax
je 0x1003666
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x1003687
push ebx
call fcn.01002ecd
mov eax, dword [0x100bce0]
cmp eax, esi
je 0x10036b8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x10036c6
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