Function at 0x40fc30
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d490
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [section..data]
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 - 0x74], edx
mov edi, ecx
mov dword [ebp - 0x7c], edi
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x6c], 0
call fcn.004089a0
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0
call fcn.0040d460
mov dword [ebp - 0x5c], eax
call fcn.0040b830
mov ebx, eax
mov byte [ebp - 0x78], 0
mov dword [ebp - 0x84], ebx
call fcn.0040b830
mov ecx, dword [0x427dac]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x88], eax
test cl, 1
jne 0x40fcd9
or ecx, 1
mov dword [0x427dac], ecx
call fcn.00412410
push 0x41e230
call fcn.0041b6a5
add esp, 4
cmp byte [0x427d58], 0
je 0x40fd00
push 0x7010
push str.JHISVC
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__d____s__FN:__08x_n
call fcn.00401550
add esp, 0x10
cmp byte [edi], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x40fd1b
xor ecx, ecx
jmp 0x40fd29
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fd20
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401b20
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00404330
mov byte [ebp - 4], 0
mov ebx, eax
cmp dword [ebp - 0x18], 0x10
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x60], ebx
jb 0x40fd5f
push dword [ebp - 0x2c]
call esi
add esp, 4
cmp ebx, 2
ja 0x4101eb
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
cmp byte [edi], al
jne 0x40fd95
xor ecx, ecx
jmp 0x40fda9
mov ecx, edi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fda0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401b20
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403e00
test al, al
mov byte [ebp - 4], 2
sete bl
cmp dword [ebp - 0x18], 0x10
jb 0x40fddf
push dword [ebp - 0x2c]
call esi
add esp, 4
test bl, bl
je 0x40fdff
mov edi, 0x402
cmp dword [ebp - 0x30], 8
jb 0x4101f0
push dword [ebp - 0x44]
call esi
add esp, 4
jmp 0x4101f0
cmp dword [ebp - 0x60], 0
jne 0x40fe3f
cmp dword [ebp - 0x30], 8
lea edx, [ebp - 0x44]
push dword [ebp - 0x78]
cmovae edx, dword [ebp - 0x44]
mov ecx, edi
push 1
call fcn.004131d0
add esp, 8
test eax, eax
je 0x40fe3f
cmp dword [ebp - 0x30], 8
mov edi, 0x402
jb 0x4101f0
push dword [ebp - 0x44]
call esi
add esp, 4
jmp 0x4101f0
mov ebx, dword [ebp - 0x5c]
mov ecx, ebx
call fcn.004166a0
mov ecx, ebx
call fcn.00416b80
test byte [ebp + 8], 1
je 0x40ff41
call fcn.0040b830
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x60], eax
cmp cx, 0xb
jae 0x40fec0
cmp cx, 3
je 0x40fec0
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401960
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.00404450
test al, al
mov byte [ebp - 4], 2
sete bl
cmp dword [ebp - 0x18], 0x10
jb 0x40fea7
push dword [ebp - 0x2c]
call esi
add esp, 4
test bl, bl
je 0x40febd
lea ecx, [ebp - 0x44]
mov edi, 0x100d
call fcn.00402650
jmp 0x4101f0
mov ebx, dword [ebp - 0x5c]
cmp byte [edi], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x40fedb
xor ecx, ecx
jmp 0x40fee9
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fee0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401b20
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
push dword [ebp - 0x74]
call fcn.004173d0
cmp dword [ebp - 0x18], 0x10
mov bl, al
jb 0x40ff11
push dword [ebp - 0x2c]
call esi
add esp, 4
test bl, bl
je 0x40ff41
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x74]
sub esp, 0x10
mov eax, esp
movdqu xmm0, xmmword [ecx]
mov ecx, dword [ebp - 0x5c]
movdqu xmmword [eax], xmm0
call fcn.00416ed0
xor ecx, ecx
mov edi, 0x100e
test al, al
cmovne edi, ecx
jmp 0x40fde8
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x40ff60
cmp eax, 0x720
je 0x40ff60
mov edi, 0x601
jmp 0x40fde8
mov eax, dword [0x427dac]
test al, 1
jne 0x40ff83
or eax, 1
mov dword [0x427dac], eax
call fcn.00412410
push 0x41e230
call fcn.0041b6a5
add esp, 4
push 0xffffffffffffffff
push dword [0x427d50]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x427d8c], 0
mov eax, 1
push dword [0x427d50]
movzx ebx, bl
cmovne ebx, eax
mov eax, dword [0x427d90]
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x4101e1
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x4101e1
cmp dword [ebp - 0x88], 2
jne 0x410062
cmp byte [ebp - 0x78], 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x44]
push eax
je 0x40ffee
call fcn.00403f90
jmp 0x40fff9
mov ecx, dword [ebp - 0x84]
call fcn.00404220
mov edi, eax
test edi, edi
je 0x41000c
lea ecx, [ebp - 0x44]
call fcn.00402650
jmp 0x4101f0
mov eax, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x7c]
mov esi, dword [eax]
cmp esi, eax
je 0x410142
lea esp, [esp]
push dword [ebp - 0x68]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub esp, 0x10
movdqu xmm0, xmmword [ebp - 0x54]
mov edi, dword [ebp - 0x60]
mov eax, esp
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x60]
mov edi, dword [edi]
movdqu xmmword [eax], xmm0
push edx
lea eax, [ebp - 0x58]
push eax
push ebx
call dword [edi + 0x1c]
mov edi, eax
test edi, edi
je 0x410086
cmp edi, 0x404
je 0x41009a
mov esi, dword [esi]
cmp esi, dword [ebp - 0x70]
jne 0x410020
jmp 0x410086
push dword [ebp - 0x68]
movdqu xmm0, xmmword [ebp - 0x54]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
push 0
movdqu xmmword [eax], xmm0
push 0
lea eax, [ebp - 0x58]
push eax
push edi
call dword [edx + 0x1c]
mov ebx, dword [ebp - 0x7c]
mov edi, eax
cmp edi, 0x404
je 0x41009a
cmp edi, 0x100c
jne 0x410126
mov ecx, dword [ebp - 0x5c]
push 1
call fcn.00416cf0
test al, al
je 0x410126
cmp dword [ebp - 0x88], 2
jne 0x410102
mov eax, dword [ebp - 0x70]
mov esi, dword [eax]
cmp esi, eax
je 0x410126
lea ebx, [ebx]
push dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
mov edx, dword [esi + 8]
sub esp, 0x10
mov ecx, dword [esi + 0xc]
movdqu xmm0, xmmword [ebp - 0x54]
mov edi, dword [eax]
sub ecx, edx
mov eax, esp
push ecx
mov ecx, dword [ebp - 0x60]
push edx
movdqu xmmword [eax], xmm0
lea eax, [ebp - 0x58]
push eax
push ebx
call dword [edi + 0x1c]
mov edi, eax
test edi, edi
je 0x410126
cmp edi, 0x404
je 0x41012e
mov esi, dword [esi]
cmp esi, dword [ebp - 0x70]
jne 0x4100c0
jmp 0x410126
push dword [ebp - 0x68]
movdqu xmm0, xmmword [ebp - 0x54]
mov ecx, dword [ebp - 0x60]
sub esp, 0x10
mov eax, esp
mov edx, dword [ecx]
push 0
movdqu xmmword [eax], xmm0
push 0
lea eax, [ebp - 0x58]
push eax
push ebx
call dword [edx + 0x1c]
mov edi, eax
cmp edi, 0x404
jne 0x41013e
mov edi, 0x100c
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jmp 0x40fde8
test edi, edi
jne 0x410133
cmp byte [ebx], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x41015d
xor ecx, ecx
jmp 0x41016b
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410162
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401b20
mov ecx, dword [ebp - 0x5c]
sub esp, 0x10
mov eax, esp
mov byte [ebp - 4], 5
movdqu xmm0, xmmword [ebp - 0x54]
push dword [ebp - 0x80]
movdqu xmmword [eax], xmm0
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
push dword [ebp - 0x58]
push eax
call fcn.00414e40
mov byte [ebp - 4], 2
mov bl, al
cmp dword [ebp - 0x18], 0x10
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4101b6
push dword [ebp - 0x2c]
call esi
add esp, 4
test bl, bl
je 0x4101cb
mov eax, dword [ebp - 0x74]
movdqu xmm0, xmmword [ebp - 0x54]
movdqu xmmword [eax], xmm0
jmp 0x40fde8
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x58]
push edx
mov edi, 0x601
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x40fde8
mov edi, 0x300
jmp 0x40fde8
mov edi, 0x601
mov eax, dword [0x427dac]
test al, 1
jne 0x410213
or eax, 1
mov dword [0x427dac], eax
call fcn.00412410
push 0x41e230
call fcn.0041b6a5
add esp, 4
cmp byte [0x427d58], 0
je 0x41023b
push edi
push 0x7011
push str.JHISVC
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__d____s__FN:__08x_RET:_0x_08x_n
call fcn.00401550
add esp, 0x14
test edi, edi
je 0x410273
push 0x421188
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov ebx, eax
test ebx, ebx
je 0x410273
push 0
push 0
push 0
push 0
push 0
push 0x8000000a
push 0
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea ecx, [ebp - 0x70]
call fcn.004102d0
push dword [ebp - 0x70]
call esi
add esp, 4
mov eax, edi
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.0041b5b1
mov esp, ebp
pop ebp
ret