Function at 0x40e230
Capabilities:
Access the windows event log
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41a315
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x421018]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x421018]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
push 0x18
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, esi
je 0x40eb4e
mov dword [eax], eax
mov dword [esp + 0x1c], eax
mov dword [eax + 4], eax
mov dword [esp + 0xb8], esi
test byte [0x422c58], 1
mov dword [esp + 0x14], 0x601
lea edi, [esi + 1]
jne 0x40e2e3
or dword [0x422c58], edi
mov byte [esp + 0xb8], 1
call fcn.004103d0
push 0x41aab0
call fcn.00417dd5
add esp, 4
mov byte [esp + 0xb8], 0
test byte [0x422c14], 1
jne 0x40e314
or dword [0x422c14], edi
mov byte [esp + 0xb8], 2
call fcn.00402990
push 0x41a9d0
call fcn.00417dd5
add esp, 4
mov byte [esp + 0xb8], 0
cmp byte [ebp + 0x10], 0
je 0x40e393
mov eax, ebx
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], esi
mov byte [esp + 0x70], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e336
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x70]
call fcn.00402020
push 0x422c18
mov edi, esi
mov byte [esp + 0xbc], 3
call fcn.00403220
mov byte [esp + 0xb8], 0
cmp dword [esp + 0x84], 0x10
mov esi, eax
jb 0x40e382
mov ecx, dword [esp + 0x70]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test esi, esi
js 0x40ea86
cmp esi, 3
jge 0x40ea86
mov eax, 0x422c40
call fcn.00411fe0
push 0x422c40
call fcn.004124c0
mov eax, ebx
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e3c7
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x70]
call fcn.00402020
mov edx, esi
push edx
mov ecx, 0x422c40
mov byte [esp + 0xbc], 4
call fcn.00412210
test al, al
sete byte [esp + 0x13]
mov byte [esp + 0xb8], 0
cmp dword [esp + 0x84], 0x10
jb 0x40e419
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x40e48b
mov eax, ebx
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e440
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x70]
call fcn.00402020
mov ecx, esi
push ecx
mov ecx, 0x422c40
mov byte [esp + 0xbc], 5
call fcn.00412370
mov byte [esp + 0xb8], 0
cmp dword [esp + 0x84], 0x10
jb 0x40e48b
mov edx, dword [esp + 0x70]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test byte [0x422b68], 1
jne 0x40e4ad
or dword [0x422b68], 1
call fcn.0040d2d0
push 0x41a960
call fcn.00417dd5
add esp, 4
mov eax, dword [0x422b70]
push 0xffffffffffffffff
push eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x422bb4], 0
je 0x40e4ce
mov byte [esp + 0x13], 1
mov ecx, 0xd
mov esi, 0x422bb8
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x422b70]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [esp + 0x13], 0
jne 0x40e505
cmp byte [ebp + 0x10], 0
je 0x40e505
mov dword [esp + 0x14], 0x300
jmp 0x40ea86
mov edi, dword [esp + 0x2c]
push 0
push edi
call dword [sym.imp.MSVCR100.dll__waccess_s]
add esp, 8
test eax, eax
je 0x40e526
mov dword [esp + 0x14], 0x101
jmp 0x40ea86
xor edx, edx
mov eax, edi
mov word [esp + 0x70], dx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
lea edx, [eax + 2]
jmp 0x40e550
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e550
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x74]
call fcn.0040ba00
push 0x421240
mov ecx, esi
mov byte [esp + 0xbc], 6
call fcn.00402d40
test al, al
sete byte [esp + 0x13]
mov byte [esp + 0xb8], 0
cmp dword [esp + 0x84], 8
jb 0x40e5a6
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x40e5ba
mov dword [esp + 0x14], 0x1007
jmp 0x40ea86
cmp byte [ebp + 0x10], 0
je 0x40e631
mov eax, ebx
lea ecx, [esp + 0x70]
call fcn.00401a20
mov eax, edi
lea ecx, [esp + 0x8c]
mov byte [esp + 0xb8], 7
call fcn.0040b900
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x78]
mov edx, 0x422c18
mov byte [esp + 0xc0], 8
call fcn.00402b00
mov edi, eax
lea esi, [esp + 0x8c]
mov dword [esp + 0x14], edi
call fcn.00401ac0
lea esi, [esp + 0x70]
mov byte [esp + 0xb8], 0
call fcn.00401a60
test edi, edi
jne 0x40ea86
jmp 0x40e682
mov eax, edi
lea ecx, [esp + 0x8c]
call fcn.0040b900
lea ebx, [esp + 0x1c]
lea edx, [esp + 0x8c]
mov ecx, 0x422c18
mov byte [esp + 0xb8], 9
call fcn.004030d0
mov edi, eax
lea esi, [esp + 0x8c]
mov dword [esp + 0x14], edi
mov byte [esp + 0xb8], 0
call fcn.00401ac0
test edi, edi
jne 0x40ea86
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
mov edi, dword [esp + 0x4c]
cmp esi, eax
je 0x40e6f1
cmp byte [0x422b58], 0
jne 0x40e6b9
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ebx, dword [esi + 8]
call fcn.0040f660
mov ebx, dword [esp + 0x18]
test al, al
je 0x40e6b9
mov dword [esp + 0x14], 0x102
jmp 0x40e6e9
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ecx, dword [esi + 8]
push eax
mov eax, dword [esp + 0x40]
push ecx
push ebx
push eax
call edi
add esp, 0x10
mov dword [esp + 0x14], eax
cmp eax, 0x108
je 0x40e79e
cmp eax, 0x404
je 0x40e6fb
test eax, eax
je 0x40e6f1
mov esi, dword [esi]
cmp esi, dword [esp + 0x1c]
jne 0x40e690
cmp dword [esp + 0x14], 0x404
jne 0x40e773
call fcn.0040e0d0
test al, al
je 0x40e75f
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
cmp esi, eax
je 0x40e75f
mov edi, edi
cmp byte [0x422b58], 0
jne 0x40e739
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ebx, dword [esi + 8]
call fcn.0040f660
mov ebx, dword [esp + 0x18]
test al, al
je 0x40e739
mov dword [esp + 0x14], 0x102
jmp 0x40e757
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [esp + 0x44]
push ebx
push ecx
call edi
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x40e75f
mov esi, dword [esi]
cmp esi, dword [esp + 0x1c]
jne 0x40e710
mov eax, dword [esp + 0x14]
cmp eax, 0x404
jne 0x40e777
mov dword [esp + 0x14], eax
jmp 0x40e83c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40e79e
cmp eax, 0x404
je 0x40e83c
cmp eax, 0x1008
je 0x40e83c
mov dword [esp + 0x14], 0x1009
jmp 0x40e83c
cmp byte [ebp + 0x10], 0
je 0x40ea7e
mov eax, ebx
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e7c8
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x70]
call fcn.00402020
mov ecx, esi
mov ebx, 0x422c18
mov byte [esp + 0xb8], 0xa
call fcn.00402e80
test al, al
sete bl
mov byte [esp + 0xb8], 0
cmp dword [esp + 0x84], 0x10
jb 0x40e817
mov edx, dword [esp + 0x70]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x18]
test bl, bl
je 0x40ea19
mov ecx, dword [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x1c], 0x601
call dword [esp + 0x58]
mov ebx, dword [esp + 0x20]
add esp, 8
cmp byte [ebp + 0x10], 0
je 0x40ea86
mov eax, ebx
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e866
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x70]
call fcn.00402020
mov byte [esp + 0xb8], 0xc
test byte [0x422c14], 1
jne 0x40e8b6
or dword [0x422c14], 1
mov byte [esp + 0xb8], 0xd
call fcn.00402990
push 0x41a9d0
call fcn.00417dd5
add esp, 4
mov byte [esp + 0xb8], 0xc
lea ecx, [esp + 0x70]
lea edi, [esp + 0x8c]
call fcn.004034f0
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x40e8d2
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll__wremove]
add esp, 4
cmp dword [esp + 0xa0], esi
jb 0x40e8f6
mov edx, dword [esp + 0x8c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
xor esi, esi
mov byte [esp + 0xb8], al
cmp dword [esp + 0x84], 0x10
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], esi
mov word [esp + 0x8c], ax
jb 0x40e933
mov ecx, dword [esp + 0x70]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, ebx
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], esi
mov byte [esp + 0x70], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e950
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x70]
call fcn.00402020
push 0x422c18
mov edi, esi
mov byte [esp + 0xbc], 0xe
call fcn.00403220
cmp eax, 1
sete byte [esp + 0x13]
mov byte [esp + 0xb8], 0
cmp dword [esp + 0x84], 0x10
jb 0x40e9a2
mov edx, dword [esp + 0x70]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x40ea86
mov eax, ebx
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e9d0
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x70]
call fcn.00402020
mov eax, esi
push eax
mov eax, 0x422c18
mov byte [esp + 0xbc], 0xf
call fcn.00403060
cmp dword [esp + 0x84], 0x10
jb 0x40ea86
mov ecx, dword [esp + 0x70]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40ea86
mov ecx, eax
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40ea40
sub ecx, esi
mov edi, ecx
lea esi, [esp + 0x70]
call fcn.00402020
mov edi, 0x422c18
mov byte [esp + 0xb8], 0xb
call fcn.004032d0
cmp dword [esp + 0x84], 0x10
jb 0x40ea7e
mov edx, dword [esp + 0x70]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x14], 0
test byte [0x422b68], 1
jne 0x40eaa8
or dword [0x422b68], 1
call fcn.0040d2d0
push 0x41a960
call fcn.00417dd5
add esp, 4
cmp byte [0x422b78], 0
je 0x40ead4
mov eax, dword [esp + 0x14]
push eax
push 0x3011
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
cmp dword [esp + 0x14], 0
je 0x40eb0f
push 0x41be5c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40eb0f
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_VariantCopy
push 0
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea ebx, [esp + 0x1c]
call fcn.0040c890
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00417cae
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x41d17c
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3