Function at 0x411790
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421d26
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x42c050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
xor ebx, ebx
lea ecx, [ebp - 0x21a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x21c], ax
call sub.MSVCR100.dll_memset
push 0x208
lea eax, [ebp - 0x426]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x428], dx
call sub.MSVCR100.dll_memset
add esp, 0x18
lea esi, [ebp - 0x21c]
mov edi, str.APPLETSLOCALE
mov dword [ebp - 0x448], 2
call fcn.004024a0
test al, al
jne 0x41184e
push 0x425d34
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, ebx
je 0x411844
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xc0000006
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, 0x501
jmp 0x411a99
lea ecx, [ebp - 0x21c]
push ebx
push ecx
call dword [sym.imp.MSVCR100.dll__waccess_s]
add esp, 8
test eax, eax
je 0x41189a
push 0x425d34
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, ebx
je 0x411890
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xc0000008
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, 0x1000
jmp 0x411a99
xor edx, edx
lea eax, [ebp - 0x21c]
mov word [ebp - 0x444], dx
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4118c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x444]
call fcn.00406690
mov dword [ebp - 4], ebx
test byte [0x430ea8], 1
jne 0x411906
or dword [0x430ea8], 1
call fcn.00411560
push 0x423380
call fcn.0041d6db
add esp, 4
cmp dword [ebp - 0x434], ebx
jne 0x411912
xor al, al
jmp 0x411944
mov eax, dword [0x430eb0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
lea ecx, [ebp - 0x444]
push ecx
or eax, 0xffffffff
mov ecx, 0x430ed8
call fcn.004018f0
mov edx, dword [0x430eb0]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
test al, al
sete bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x430], 8
jb 0x411969
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
je 0x411977
mov eax, 0x601
jmp 0x411a99
lea esi, [ebp - 0x428]
mov edi, str.FILELOCALE
call fcn.004024a0
test al, al
jne 0x4119a4
push 0xc0000006
push 1
call fcn.0040fe10
add esp, 8
mov eax, 0x501
jmp 0x411a99
lea ecx, [ebp - 0x428]
push 0
push ecx
call dword [sym.imp.MSVCR100.dll__waccess_s]
add esp, 8
test eax, eax
jne 0x41196d
lea eax, [ebp - 0x428]
lea ecx, [ebp - 0x444]
call fcn.00404e10
mov dword [ebp - 4], 1
call fcn.00404e90
cmp dword [ebp - 0x434], 0
mov esi, eax
jne 0x4119e6
xor bl, bl
jmp 0x411a10
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp - 0x444]
push eax
lea ecx, [esi + 0xc]
or eax, 0xffffffff
call fcn.004018f0
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov bl, 1
lea esi, [ebp - 0x444]
call fcn.004016d0
test bl, bl
je 0x41196d
lea edi, [ebp - 0x44c]
mov esi, str.JHI_LOG
mov dword [ebp - 0x44c], 0
call fcn.00402520
call fcn.00404e90
cmp dword [ebp - 0x44c], 1
jne 0x411a51
mov byte [eax + 8], 1
jmp 0x411a55
mov byte [eax + 8], 0
lea edi, [ebp - 0x448]
mov esi, str.JHI_TRANSPORT_TYPE
call fcn.00402520
test al, al
jne 0x411a73
mov dword [ebp - 0x448], 2
mov edi, dword [ebp - 0x448]
call fcn.00404e90
mov esi, eax
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
push eax
mov dword [esi + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d5b4
mov esp, ebp
pop ebp
ret