Function at 0x1001dda
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1006074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov byte [ebp - 0x48], bl
xor eax, eax
lea edi, [ebp - 0x47]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
stosb byte es:[edi], al
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x100201c
push esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
inc esi
push 0x1a
mov dword [ebp - 0x20], esi
call sub.IISUTIL.dll_AllocateAndCreateWellKnownSid
cmp eax, ebx
jne 0x1001eb1
push 0x20
pop ecx
lea eax, [ebp - 0x84]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001e46
push dword [ebp - 0x18]
lea eax, [ebp - 0x84]
push 2
push esi
push eax
call sub.IISUTIL.dll_SetExplicitAccessSettings
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
cmp eax, ebx
jne 0x1001eb1
push esi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1001ea9
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x48]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1001ea9
push ebx
push dword [ebp - 0x18]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
jne 0x1001ec5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1001ebd
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
jmp 0x100201b
push ebx
push dword [ebp - 0x18]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
test eax, eax
je 0x1001ea9
push ebx
push 0x3040
push ebx
push esi
push 6
push ebx
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x100201b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov ebx, 0x10062d0
push 0x1006010
mov ecx, ebx
call fcn.01001886
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1006354], eax
mov esi, 0x1001380
lea edi, [ebp - 0xc]
lea eax, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x24]
movsw word es:[edi], word [esi]
call fcn.01001a98
xor edi, edi
jmp 0x1001f64
push 0x1001368
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001f87
push 0x1001354
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001f95
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.01001a98
mov esi, eax
cmp esi, edi
jne 0x1001f3a
mov ecx, ebx
call fcn.01001ce1
push 1
push 4
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRegisterClassObjects]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
mov dword [ebp - 0x10], eax
jmp 0x1001ff3
push edi
push edi
push edi
push 0x65
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
jmp 0x1002012
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x34], 0x1001328
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], edi
call fcn.01001d31
cmp eax, edi
mov dword [ebp - 0x10], eax
jl 0x1002019
mov eax, dword [ebp - 0x1c]
push 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 1
push 0x65
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
and dword [ebp - 0x30], edi
lea eax, [ebp - 0x1c]
push eax
call fcn.01001ae6
lea eax, [ebp - 0x48]
push eax
call fcn.01001b10
mov dword [ebp - 0x10], eax
jmp 0x1002012
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push edi
lea eax, [ebp - 0x64]
push eax
call esi
test eax, eax
jne 0x1001fe9
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]
xor ebx, ebx
pop esi
lea eax, [ebp - 0x18]
push eax
call sub.IISUTIL.dll_FreeWellKnownSid
cmp dword [ebp - 0x14], ebx
je 0x1002036
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x20], ebx
pop edi
pop ebx
je 0x1002043
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010033bb
leave
ret