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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10d2972
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1908
call fcn.01098de0
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, 0x10312a8
push ebx
mov edi, 0x1030634
push edi
mov esi, 0x10305d0
push esi
call fcn.0109958e
lea ecx, [ebp - 0x1880]
call fcn.0109aa5f
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 0x109c16a
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.01099d42
lea eax, [ebp - 0x814]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x109be6c
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 0x109be89
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 0x1031250
push 0x1000
push eax
call fcn.01099969
lea eax, [ebp - 0x1818]
add esp, 0x34
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x109bf31
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 0x109bf7c
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 0x109bf56
and dword [ebp - 0x1828], 0
mov ecx, dword [ebp - 0x1824]
mov byte [ebp - 4], 3
call fcn.0109b1f1
mov dword [ebp - 0x1828], eax
test eax, eax
jne 0x109bfa1
mov eax, 0x1007034
movzx ecx, word [ebp - 0x181c]
push eax
push 0x1031224
mov dword [ebp + ecx*4 - 0x1918], eax
push 0x64
lea ecx, [ebp + 0x10]
call fcn.01099713
push eax
push 0x1031214
push 0xff
push 0xb
push 0x8f6
push ebx
push edi
push esi
lea ecx, [ebp - 0x18d8]
call fcn.0109958e
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x181c], esp
push 0x64
push ecx
mov ecx, eax
call fcn.010996f3
push dword [ebp - 0x1824]
call fcn.01099c82
add esp, 0x6c
lea ecx, [ebp - 0x18d8]
call fcn.0109963e
push 0x10303cc
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x1824], eax
test eax, eax
jne 0x109c083
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10311c8
push 0xff
push 0xb
push 0x906
push ebx
push edi
push esi
lea ecx, [ebp - 0x18d8]
call fcn.0109958e
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x1820], esp
push 0x64
push ecx
mov ecx, eax
call fcn.010996f3
lea eax, [ebp - 0x1880]
push eax
call fcn.0109a735
add esp, 0x64
lea ecx, [ebp - 0x18d8]
call fcn.0109963e
push 0x8000ffff
call fcn.0109956f
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 0x109c107
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1031188
push 0xff
push 0xb
push 0x917
push ebx
push edi
push esi
lea ecx, [ebp - 0x18d8]
call fcn.0109958e
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x1820], esp
push 0x64
push ecx
mov ecx, eax
call fcn.010996f3
lea eax, [ebp - 0x1880]
push eax
call fcn.0109a735
add esp, 0x64
lea ecx, [ebp - 0x18d8]
call fcn.0109963e
push dword [ebp - 0x1824]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test eax, eax
jne 0x109c134
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1031138
push 0xff
push 0xb
push 0x91e
jmp 0x109c03c
lea eax, [ebp - 0x1828]
push eax
call fcn.01057760
cmp dword [ebp - 0x1834], 0
je 0x109c155
push dword [ebp - 0x1834]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x1830], 0
je 0x109c16a
push dword [ebp - 0x1830]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1880]
call fcn.0109ab18
lea ecx, [ebp + 0x10]
call fcn.0109963e
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.010989ab
leave
ret