Function at 0x4011a4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
mov ebx, 0x40a568
mov dword [0x40a5d8], 0x40a058
mov dword [0x40a560], ebx
push 0x40a068
push ebx
mov dword [0x40a568], 0x84
mov dword [0x40a5cc], 0x300
call dword [sym.imp.ATL.DLL_AtlModuleInit]
mov eax, 0x4081a0
mov ecx, eax
test ecx, ecx
je 0x401214
push 0x10
push eax
push 0x40a550
call fcn.00403650
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x40a12c
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [0x40a5ec], eax
mov al, byte [ebp + 0x13]
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
mov byte [ebp - 0x10], al
call fcn.00401576
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x252]
mov word [ebp - 0x254], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x254]
push 0x104
push eax
push dword [0x40a56c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4012cf
lea eax, [ebp - 0x254]
push eax
call fcn.0040362e
pop ecx
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c1e
mov eax, dword [0x4081c4]
push 1
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], 0x5c
call fcn.00401507
push eax
lea eax, [ebp - 0x40]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00401465
push dword [0x4081c4]
lea ecx, [ebp - 0x10]
push esi
push eax
call fcn.00401b40
push 1
lea ecx, [ebp - 0x40]
call fcn.00401576
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], str.MOUDLEPATH
cmp eax, esi
mov dword [ebp - 0x2c], 0x4081c0
je 0x4012e7
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], str.MOUDLENAME
push eax
mov dword [ebp - 0x24], 0x40a0dc
push dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp + 8], esi
call fcn.0040115f
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
je 0x401373
push str.UnregServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x401339
push str.RegServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x401357
lea eax, [ebp - 0x18]
push eax
push edi
jmp 0x401305
lea eax, [ebp - 0x30]
push esi
push eax
push esi
push 0x64
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
push esi
push 1
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUnregisterServerEx]
mov dword [ebp + 8], eax
jmp 0x4013bd
lea eax, [ebp - 0x30]
push esi
push eax
push 1
push 0x64
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
push esi
push 1
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
jmp 0x401352
mov ecx, ebx
call fcn.00401114
push 1
push 4
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRegisterClassObjects]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push esi
push esi
lea eax, [ebp - 0x4c]
push esi
push eax
call edi
test eax, eax
je 0x4013ab
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
lea eax, [ebp - 0x4c]
push esi
push eax
jmp 0x401392
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRevokeClassObjects]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleTerm]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
lea ecx, [ebp - 0x10]
call fcn.00401576
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10