Function at 0x109bb37
Capabilities:
Accept command line arguments
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10d2635
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1908
call fcn.01098be0
mov eax, dword [0x10e3200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1824], eax
and dword [ebp - 4], 0
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x1820], esp
push 0xff
push 0xb
push 0x8b5
mov ebx, 0x1031180
push ebx
mov edi, 0x103050c
push edi
mov esi, 0x10304a8
push esi
call fcn.01099386
lea ecx, [ebp - 0x1880]
call fcn.0109a83a
xor eax, eax
push 0x3c
push eax
mov dword [ebp - 0x1830], eax
mov dword [ebp - 0x1834], eax
mov dword [ebp - 0x1918], eax
lea eax, [ebp - 0x1914]
push eax
mov byte [ebp - 4], 2
call sub.msvcrt.dll_memset
push 0x1000
lea eax, [ebp - 0x1817]
push 0
push eax
mov byte [ebp - 0x1818], 0
call sub.msvcrt.dll_memset
movzx eax, word [ebp + 0x64]
add esp, 0x18
inc eax
cmp eax, 0xf
jge 0x109bf45
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x1824]
add esp, 0xc
push 0x400
lea eax, [ebp - 0x814]
push eax
call fcn.01099b1d
lea eax, [ebp - 0x814]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x109bc47
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1828], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x109bc64
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x181c], eax
mov eax, dword [ebp - 0x1824]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1820], eax
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 0x1828]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
shl eax, 3
push eax
mov dword [ebp - 0x182c], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov eax, dword [ebp - 0x181c]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
shl eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp - 0x182c]
lea eax, [ebp - 0x1818]
push dword [ebp - 0x1820]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0x1031128
push 0x1000
push eax
call fcn.01099744
lea eax, [ebp - 0x1818]
add esp, 0x34
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x109bd0c
sub eax, ecx
and dword [ebp - 0x181c], 0
mov dword [ebp - 0x1820], eax
mov eax, dword [ebp + 0x64]
lea ecx, [eax + 1]
movzx ecx, cx
mov dword [ebp - 0x182c], ecx
cmp word [ebp - 0x181c], ax
jae 0x109bd57
movzx ecx, word [ebp - 0x181c]
shl ecx, 2
mov edx, dword [ebp + ecx + 0x28]
inc dword [ebp - 0x181c]
mov dword [ebp + ecx - 0x1918], edx
jmp 0x109bd31
and dword [ebp - 0x1828], 0
mov ecx, dword [ebp - 0x1824]
mov byte [ebp - 4], 3
call fcn.0109afcc
mov dword [ebp - 0x1828], eax
test eax, eax
jne 0x109bd7c
mov eax, 0x100703c
movzx ecx, word [ebp - 0x181c]
push eax
push 0x10310fc
mov dword [ebp + ecx*4 - 0x1918], eax
push 0x64
lea ecx, [ebp + 0x10]
call fcn.0109950b
push eax
push 0x10310ec
push 0xff
push 0xb
push 0x8f6
push ebx
push edi
push esi
lea ecx, [ebp - 0x18d8]
call fcn.01099386
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x181c], esp
push 0x64
push ecx
mov ecx, eax
call fcn.010994eb
push dword [ebp - 0x1824]
call fcn.01099a5d
add esp, 0x6c
lea ecx, [ebp - 0x18d8]
call fcn.01099436
push 0x10302a4
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x1824], eax
test eax, eax
jne 0x109be5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10310a0
push 0xff
push 0xb
push 0x906
push ebx
push edi
push esi
lea ecx, [ebp - 0x18d8]
call fcn.01099386
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x1820], esp
push 0x64
push ecx
mov ecx, eax
call fcn.010994eb
lea eax, [ebp - 0x1880]
push eax
call fcn.0109a510
add esp, 0x64
lea ecx, [ebp - 0x18d8]
call fcn.01099436
push 0x8000ffff
call fcn.01099367
lea ecx, [ebp - 0x1818]
push ecx
lea ecx, [ebp - 0x1918]
push ecx
push dword [ebp - 0x1820]
push dword [ebp - 0x182c]
push 0
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x109bee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1031060
push 0xff
push 0xb
push 0x917
push ebx
push edi
push esi
lea ecx, [ebp - 0x18d8]
call fcn.01099386
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x1820], esp
push 0x64
push ecx
mov ecx, eax
call fcn.010994eb
lea eax, [ebp - 0x1880]
push eax
call fcn.0109a510
add esp, 0x64
lea ecx, [ebp - 0x18d8]
call fcn.01099436
push dword [ebp - 0x1824]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test eax, eax
jne 0x109bf0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1031010
push 0xff
push 0xb
push 0x91e
jmp 0x109be17
lea eax, [ebp - 0x1828]
push eax
call fcn.01057728
cmp dword [ebp - 0x1834], 0
je 0x109bf30
push dword [ebp - 0x1834]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x1830], 0
je 0x109bf45
push dword [ebp - 0x1830]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1880]
call fcn.0109a8f3
lea ecx, [ebp + 0x10]
call fcn.01099436
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.010987b7
leave
ret