Function at 0x40e4f0
Capabilities:
Access the windows event log
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41c79b
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x425018]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x425018]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
push 0x18
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, esi
je 0x40efe2
mov dword [eax], eax
mov dword [esp + 0x24], eax
mov dword [eax + 4], eax
mov dword [esp + 0x128], esi
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x18], 0x601
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], esi
mov word [esp + 0x90], cx
xor edx, edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], esi
mov word [esp + 0x74], dx
mov byte [esp + 0x128], 2
test byte [0x425ce8], 1
lea edi, [esi + 1]
jne 0x40e5dd
or dword [0x425ce8], edi
mov byte [esp + 0x128], 3
call fcn.00410760
push 0x41d060
call fcn.00419c3d
add esp, 4
mov byte [esp + 0x128], 2
test byte [0x425cb0], 1
jne 0x40e60e
or dword [0x425cb0], edi
mov byte [esp + 0x128], 4
call fcn.00402a10
push 0x41cfe0
call fcn.00419c3d
add esp, 4
mov byte [esp + 0x128], 2
cmp byte [ebp + 0x10], 0
je 0x40e68a
mov eax, ebx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e630
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x3c]
call fcn.00402000
push 0x425cb4
mov edi, esi
mov byte [esp + 0x12c], 5
call fcn.00403ae0
mov byte [esp + 0x128], 2
cmp dword [esp + 0x50], 0x10
mov esi, eax
jb 0x40e679
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test esi, esi
js 0x40eeb1
cmp esi, 3
jge 0x40eeb1
mov eax, 0x425cd0
call fcn.00412240
push 0x425cd0
call fcn.00412730
mov eax, ebx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e6b8
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x3c]
call fcn.00402000
mov ecx, esi
push ecx
mov ecx, 0x425cd0
mov byte [esp + 0x12c], 6
call fcn.00412480
test al, al
sete byte [esp + 0x17]
mov byte [esp + 0x128], 2
cmp dword [esp + 0x50], 0x10
jb 0x40e707
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x17], 0
je 0x40e770
mov eax, ebx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e728
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x3c]
call fcn.00402000
mov eax, esi
push eax
mov ecx, 0x425cd0
mov byte [esp + 0x12c], 7
call fcn.004125e0
mov byte [esp + 0x128], 2
cmp dword [esp + 0x50], 0x10
jb 0x40e770
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test byte [0x425c0c], 1
jne 0x40e7a2
or dword [0x425c0c], 1
mov byte [esp + 0x128], 8
call fcn.0040d580
push 0x41cf70
call fcn.00419c3d
add esp, 4
mov byte [esp + 0x128], 2
mov edx, dword [0x425c10]
push 0xffffffffffffffff
push edx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x425c14], bl
je 0x40e7bd
mov bl, 1
mov eax, dword [0x425c10]
mov ecx, 0xd
mov esi, 0x425c50
lea edi, [esp + 0xc8]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
jne 0x40e7f2
cmp byte [ebp + 0x10], bl
je 0x40e7f2
mov dword [esp + 0x18], 0x300
jmp 0x40eeb1
mov esi, dword [esp + 0x20]
push 0
push esi
call dword [sym.imp.MSVCR100.dll__waccess_s]
add esp, 8
test eax, eax
je 0x40e813
mov dword [esp + 0x18], 0x101
jmp 0x40eeb1
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e830
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x40]
call fcn.00404220
sub esp, 0x1c
mov byte [esp + 0x144], 9
mov ecx, esp
mov dword [esp + 0x34], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x425220
or eax, 0xffffffff
xor ebx, ebx
mov byte [ecx], 0
call fcn.00401f20
mov ecx, esi
call fcn.00402fb0
test al, al
sete bl
mov byte [esp + 0x128], 2
cmp dword [esp + 0x50], 8
jb 0x40e8a5
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
je 0x40e8b6
mov dword [esp + 0x18], 0x1007
jmp 0x40eeb1
cmp byte [ebp + 0x10], 0
je 0x40e928
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xac]
call fcn.00401a20
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x58]
mov byte [esp + 0x128], 0xa
call fcn.00403dc0
lea eax, [esp + 0xac]
push eax
push 0x425cb4
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x60]
mov byte [esp + 0x130], 0xb
call fcn.00402bc0
mov edi, eax
lea esi, [esp + 0x58]
mov dword [esp + 0x18], edi
call fcn.00401a90
lea esi, [esp + 0xac]
mov byte [esp + 0x128], 2
call fcn.00403260
jmp 0x40e965
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x58]
call fcn.00403dc0
lea ecx, [esp + 0x24]
push ecx
mov edx, eax
mov ecx, 0x425cb4
mov byte [esp + 0x12c], 0xc
call fcn.00403980
mov edi, eax
lea esi, [esp + 0x58]
mov dword [esp + 0x18], edi
mov byte [esp + 0x128], 2
call fcn.00401a90
test edi, edi
jne 0x40eeb1
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
mov edi, dword [esp + 0xe0]
cmp esi, eax
je 0x40e9e4
mov edi, edi
cmp byte [0x427dd8], 0
jne 0x40e9a5
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ebx, dword [esi + 8]
call fcn.0040fb20
test al, al
je 0x40e9a5
mov dword [esp + 0x18], 0x102
jmp 0x40e9dc
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0xfc]
push ecx
push edx
push eax
call edi
add esp, 0x10
mov dword [esp + 0x18], eax
cmp eax, 0x108
je 0x40ea8f
cmp eax, 0x404
je 0x40e9ef
test eax, eax
je 0x40e9e4
mov esi, dword [esi]
cmp esi, dword [esp + 0x24]
jne 0x40e980
mov eax, dword [esp + 0x18]
cmp eax, 0x404
jne 0x40ea68
call fcn.0040e390
test al, al
je 0x40ea54
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
cmp esi, eax
je 0x40ea54
cmp byte [0x427dd8], 0
jne 0x40ea27
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ebx, dword [esi + 8]
call fcn.0040fb20
test al, al
je 0x40ea27
mov dword [esp + 0x18], 0x102
jmp 0x40ea4c
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0xf8]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
call edi
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
je 0x40ea54
mov esi, dword [esi]
cmp esi, dword [esp + 0x24]
jne 0x40ea02
mov eax, dword [esp + 0x18]
cmp eax, 0x404
jne 0x40ea68
mov dword [esp + 0x18], eax
jmp 0x40eb2d
test eax, eax
je 0x40ea8f
cmp eax, 0x404
je 0x40eb2d
cmp eax, 0x1008
je 0x40eb2d
mov dword [esp + 0x18], 0x1009
jmp 0x40eb2d
cmp byte [ebp + 0x10], 0
je 0x40eea9
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40eab5
mov ebx, dword [esp + 0x1c]
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x3c]
call fcn.00402000
push 0x425cb4
mov ecx, esi
mov byte [esp + 0x12c], 0xd
call fcn.00403290
test al, al
sete byte [esp + 0x17]
mov byte [esp + 0x128], 2
cmp dword [esp + 0x50], 0x10
jb 0x40eb07
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x17], 0
je 0x40ee4a
mov ecx, dword [esp + 0xf8]
push ebx
push ecx
mov dword [esp + 0x20], 0x601
call dword [esp + 0xe4]
add esp, 8
cmp byte [ebp + 0x10], 0
je 0x40eeb1
test byte [0x425c0c], 1
jne 0x40eb69
or dword [0x425c0c], 1
mov byte [esp + 0x128], 0xf
call fcn.0040d580
push 0x41cf70
call fcn.00419c3d
add esp, 4
mov byte [esp + 0x128], 2
cmp dword [0x425c44], 0
je 0x40ed69
mov edx, dword [0x425c10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x425c34
or eax, 0xffffffff
lea ecx, [esp + 0x98]
call fcn.00401d50
mov eax, dword [0x425c10]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40ebc3
sub eax, ecx
mov edi, eax
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0x3c]
call fcn.00402000
mov ecx, esi
mov eax, 0x42523c
lea ebx, [esp + 0x58]
mov byte [esp + 0x128], 0x10
call fcn.00408330
mov ecx, eax
mov eax, 0x425220
lea ebx, [esp + 0xac]
mov byte [esp + 0x128], 0x11
call fcn.00404cb0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x128], 0x12
call fcn.00401840
mov ecx, eax
lea eax, [esp + 0x90]
lea ebx, [esp + 0xfc]
mov byte [esp + 0x128], 0x13
call fcn.00404cf0
mov edi, eax
lea esi, [esp + 0x74]
mov byte [esp + 0x128], 0x14
call fcn.00401ce0
mov esi, 8
cmp dword [esp + 0x110], esi
jb 0x40ec71
mov ecx, dword [esp + 0xfc]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
xor edx, edx
mov edi, 7
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], dx
cmp dword [esp + 0xdc], esi
jb 0x40ecaa
mov eax, dword [esp + 0xc8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov esi, 0x10
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], cx
cmp dword [esp + 0xc0], esi
jb 0x40ece1
mov edx, dword [esp + 0xac]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
cmp dword [esp + 0x6c], esi
jb 0x40ed0f
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [esp + 0x128], 2
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
cmp dword [esp + 0x50], esi
jb 0x40ed37
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ebx, [esp + 0x74]
lea eax, [esp + 0x58]
call fcn.004018b0
cmp dword [eax + 0x14], esi
jb 0x40ed4b
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
cmp dword [esp + 0x6c], esi
jb 0x40ed69
mov edx, dword [esp + 0x58]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ed85
mov ebx, dword [esp + 0x1c]
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x3c]
call fcn.00402000
push 0x425cb4
mov edi, esi
mov byte [esp + 0x12c], 0x15
call fcn.00403ae0
cmp eax, 1
sete byte [esp + 0x17]
mov byte [esp + 0x128], 2
cmp dword [esp + 0x50], 0x10
jb 0x40edd8
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x17], 0
je 0x40eeb1
xor edx, edx
mov eax, ebx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], edx
mov byte [esp + 0x3c], dl
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, dl
jne 0x40ee00
sub eax, esi
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x3c]
call fcn.00402000
mov ecx, esi
push ecx
mov eax, 0x425cb4
mov byte [esp + 0x12c], 0x16
call fcn.00403910
mov byte [esp + 0x128], 2
cmp dword [esp + 0x50], 0x10
jb 0x40eeb1
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40eeb1
mov eax, ebx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ee64
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x3c]
call fcn.00402000
mov edi, 0x425cb4
mov byte [esp + 0x128], 0xe
call fcn.00403b90
mov byte [esp + 0x128], 2
cmp dword [esp + 0x50], 0x10
jb 0x40eea9
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x18], 0
test byte [0x425c0c], 1
jne 0x40eedb
or dword [0x425c0c], 1
mov byte [esp + 0x128], 0x17
call fcn.0040d580
push 0x41cf70
call fcn.00419c3d
add esp, 4
cmp byte [0x425c15], 0
je 0x40ef07
mov ecx, dword [esp + 0x18]
push ecx
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 + 0x18], 0
je 0x40ef42
push 0x41ef14
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40ef42
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]
cmp dword [esp + 0x88], 8
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x40ef5c
mov edx, dword [esp + 0x74]
push edx
call edi
add esp, 4
xor ebx, ebx
xor eax, eax
cmp dword [esp + 0xa4], 8
mov esi, 7
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], ax
jb 0x40ef8f
mov ecx, dword [esp + 0x90]
push ecx
call edi
add esp, 4
mov dword [esp + 0xa0], ebx
xor edx, edx
lea ebx, [esp + 0x24]
mov dword [esp + 0xa4], esi
mov word [esp + 0x90], dx
call fcn.0040ce00
mov eax, dword [esp + 0x24]
push eax
call edi
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00419b16
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x420464
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3