Function at 0x40eb70
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x422ac2
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x42c050]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x42c050]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
xor esi, esi
push 0x18
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, esi
je 0x40f45b
mov dword [eax], eax
mov dword [esp + 0x24], eax
mov dword [eax + 4], eax
mov dword [esp + 0xa0], esi
test byte [0x430f5c], 1
lea edi, [esi + 1]
jne 0x40ec29
or dword [0x430f5c], edi
mov byte [esp + 0xa0], 1
call fcn.00414d40
push 0x423530
call fcn.0041d6db
add esp, 4
mov byte [esp + 0xa0], 0
test byte [0x430f18], 1
jne 0x40ec8b
or dword [0x430f18], edi
mov byte [esp + 0xa0], 2
call fcn.00402740
push 0x423420
call fcn.0041d6db
add esp, 4
mov byte [esp + 0xa0], 0
test byte [0x430f18], 1
jne 0x40ec8b
or dword [0x430f18], edi
mov byte [esp + 0xa0], 3
call fcn.00402740
push 0x423420
call fcn.0041d6db
add esp, 4
mov byte [esp + 0xa0], 0
test byte [0x430ea8], 1
mov eax, dword [0x430f3c]
mov dword [esp + 0x38], eax
jne 0x40ecb5
or dword [0x430ea8], edi
call fcn.00411560
push 0x423380
call fcn.0041d6db
add esp, 4
cmp byte [0x430eb8], 0
je 0x40ecdc
push 0x7010
push str.JHISVC
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__d____s__FN:__08x_n
call fcn.00401000
add esp, 0x10
mov eax, ebx
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], esi
mov byte [esp + 0x58], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ecf2
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x58]
call fcn.00401c70
push 0x430f1c
mov edi, esi
mov byte [esp + 0xa4], 4
call fcn.00403940
mov esi, eax
mov byte [esp + 0xa0], 0
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x1c], esi
jb 0x40ed3f
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp esi, 2
ja 0x40f361
xor eax, eax
xor edx, edx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], eax
mov word [esp + 0x74], dx
mov byte [esp + 0xa0], 5
mov dword [esp + 0x68], eax
mov eax, ebx
mov byte [esp + 0x58], dl
mov dword [esp + 0x6c], 0xf
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ed80
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x58]
call fcn.00401c70
lea eax, [esp + 0x13]
push eax
lea ebx, [esp + 0x78]
mov ecx, esi
mov byte [esp + 0xa4], 6
call fcn.004033a0
test al, al
sete bl
mov byte [esp + 0xa0], 5
cmp dword [esp + 0x6c], 0x10
jb 0x40edd0
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
je 0x40edfa
mov ebx, 0x402
cmp dword [esp + 0x88], 8
jb 0x40f366
mov edx, dword [esp + 0x74]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40f366
cmp dword [esp + 0x1c], 0
mov esi, 8
jne 0x40ee53
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], esi
jae 0x40ee17
lea eax, [esp + 0x74]
mov cl, byte [esp + 0x13]
mov edx, dword [esp + 0x14]
push 1
push eax
call fcn.004124d0
add esp, 8
test eax, eax
je 0x40ee53
mov ebx, 0x402
cmp dword [esp + 0x88], esi
jb 0x40f366
mov eax, dword [esp + 0x74]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40f366
mov eax, 0x430f44
call fcn.004169a0
push 0x430f44
call fcn.00416e70
test byte [ebp + 0x10], 1
je 0x40efc4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ee90
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x58]
call fcn.00401c70
mov eax, esi
mov ebx, 0x430f1c
mov byte [esp + 0xa0], 7
call fcn.004039f0
test al, al
sete bl
mov byte [esp + 0xa0], 5
cmp dword [esp + 0x6c], 0x10
jb 0x40eede
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
je 0x40eeec
mov ebx, 0x100d
jmp 0x40edd9
mov eax, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40ef10
sub ecx, esi
mov edi, ecx
lea esi, [esp + 0x58]
call fcn.00401c70
mov eax, esi
mov esi, dword [esp + 0x30]
push eax
push esi
push 0x430f44
mov byte [esp + 0xac], 8
call fcn.00417810
mov byte [esp + 0xa0], 5
cmp dword [esp + 0x6c], 0x10
mov bl, al
jb 0x40ef5d
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
je 0x40efbf
mov edx, dword [esi]
mov ecx, dword [esi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x44]
push edx
push 0x430f44
mov dword [eax + 0xc], ecx
call fcn.004172a0
movzx ebx, al
neg ebx
sbb ebx, ebx
and ebx, 0xffffeff2
add ebx, 0x100e
cmp dword [esp + 0x88], 8
jb 0x40f366
mov eax, dword [esp + 0x74]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40f366
mov esi, 8
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x40efeb
cmp eax, 0x720
je 0x40efeb
cmp dword [esp + 0x88], esi
mov ebx, 0x601
jmp 0x40ede1
test byte [0x430ea8], 1
jne 0x40f00d
or dword [0x430ea8], 1
call fcn.00411560
push 0x423380
call fcn.0041d6db
add esp, 4
mov eax, dword [0x430eb0]
push 0xffffffffffffffff
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x430ef4], bl
je 0x40f027
mov bl, 1
mov ecx, dword [0x430eb0]
mov edi, dword [0x430ef8]
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x40f350
test edi, edi
je 0x40f350
cmp dword [esp + 0x38], 2
jne 0x40f0fb
cmp byte [esp + 0x13], 0
lea edx, [esp + 0x74]
je 0x40f070
push edx
lea ecx, [esp + 0x28]
call fcn.00403530
jmp 0x40f07e
lea ebx, [esp + 0x24]
mov ecx, 0x430f1c
call fcn.004037f0
mov ebx, eax
test ebx, ebx
je 0x40f092
lea esi, [esp + 0x74]
call fcn.004016d0
jmp 0x40f366
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
cmp esi, eax
je 0x40f24b
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x60]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x64]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x68]
push ecx
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 8]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
push eax
mov ecx, edi
call edx
mov ebx, eax
test ebx, ebx
je 0x40f139
cmp ebx, 0x404
je 0x40f14d
mov esi, dword [esi]
cmp esi, dword [esp + 0x24]
jne 0x40f0a0
jmp 0x40f139
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
push 0
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, edi
call edx
mov ebx, eax
cmp ebx, 0x404
je 0x40f14d
cmp ebx, 0x100c
jne 0x40f219
push 1
push 0x430f44
call fcn.00417040
test al, al
je 0x40f219
cmp dword [esp + 0x38], 2
jne 0x40f1db
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
cmp esi, eax
je 0x40f219
jmp 0x40f180
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x60]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x64]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x68]
push ecx
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 8]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
push eax
mov ecx, edi
call edx
mov ebx, eax
test ebx, ebx
je 0x40f219
cmp ebx, 0x404
je 0x40f221
mov esi, dword [esi]
cmp esi, dword [esp + 0x24]
jne 0x40f180
jmp 0x40f219
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
push 0
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, edi
call edx
mov ebx, eax
cmp ebx, 0x404
jne 0x40f247
mov ebx, 0x100c
cmp dword [esp + 0x88], 8
jb 0x40f366
mov ecx, dword [esp + 0x74]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40f366
test ebx, ebx
jne 0x40f226
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f267
sub eax, esi
mov edi, eax
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x58]
call fcn.00401c70
mov byte [esp + 0xa0], 9
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x44]
push eax
mov ecx, esi
push ecx
mov ecx, dword [esp + 0x30]
push 0x430f44
call fcn.00414de0
mov byte [esp + 0xa0], 5
cmp dword [esp + 0x6c], 0x10
mov byte [esp + 0x13], al
jb 0x40f2e1
mov edx, dword [esp + 0x58]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x40f321
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jb 0x40f366
mov eax, dword [esp + 0x74]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40f366
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x18]
push eax
mov ebx, 0x601
call edx
cmp dword [esp + 0x88], 8
jb 0x40f366
mov eax, dword [esp + 0x74]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40f366
cmp dword [esp + 0x88], esi
mov ebx, 0x300
jmp 0x40ede1
mov ebx, 0x601
test byte [0x430ea8], 1
jne 0x40f388
or dword [0x430ea8], 1
call fcn.00411560
push 0x423380
call fcn.0041d6db
add esp, 4
cmp byte [0x430eb8], 0
je 0x40f3b0
push ebx
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.00401000
add esp, 0x14
test ebx, ebx
je 0x40f3e8
push 0x425d34
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40f3e8
push 0
push 0
push 0
push 0
push 0
push 0x8000000a
push 0
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
mov dword [eax], eax
mov dword [eax + 4], eax
cmp esi, eax
je 0x40f427
mov eax, dword [esi + 8]
mov edi, dword [esi]
test eax, eax
je 0x40f40a
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
push esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, edi
cmp edi, dword [esp + 0x24]
jne 0x40f3f7
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0041d5b4
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x42733c
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x44], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3