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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41beba
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x423018]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x423018]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x34], esi
push 0x18
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, esi
je 0x40f3a3
mov dword [eax], eax
mov dword [esp + 0x38], eax
mov dword [eax + 4], eax
mov dword [esp + 0x130], esi
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x18], 0x601
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], esi
mov word [esp + 0x7c], cx
xor edx, edx
mov dword [esp + 0xac], eax
mov dword [esp + 0xa8], esi
mov word [esp + 0x98], dx
mov byte [esp + 0x130], 2
test byte [0x423ce4], 1
lea edi, [esi + 1]
jne 0x40e8a1
or dword [0x423ce4], edi
mov byte [esp + 0x130], 3
call fcn.004109f0
push 0x41c710
call fcn.0041946d
add esp, 4
mov byte [esp + 0x130], 2
test byte [0x423cb0], 1
jne 0x40e8d2
or dword [0x423cb0], edi
mov byte [esp + 0x130], 4
call fcn.00402990
push 0x41c690
call fcn.0041946d
add esp, 4
mov byte [esp + 0x130], 2
mov eax, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], esi
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e8e8
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401fb0
push 0x423cb4
mov edi, esi
mov byte [esp + 0x134], 5
call fcn.00403a80
mov byte [esp + 0x130], 2
cmp dword [esp + 0x58], 0x10
mov esi, eax
jb 0x40e931
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp esi, 2
ja 0x40f225
jne 0x40e994
mov eax, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e956
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401fb0
push 1
mov ecx, esi
push ecx
mov byte [esp + 0x138], 6
mov ecx, 0x423cd0
mov dword [esp + 0x3c], 1
call fcn.00411820
mov byte [esp + 0x17], 1
test al, al
jne 0x40e999
mov byte [esp + 0x17], 0
mov dword [esp + 0x130], 2
test byte [esp + 0x34], 1
je 0x40e9c0
cmp dword [esp + 0x58], 0x10
jb 0x40e9c0
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x17], 0
je 0x40ead0
mov eax, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e9e5
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401fb0
push 1
push 0x423cd0
mov edx, esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 7
call fcn.00411620
mov byte [esp + 0x130], 9
cmp dword [esp + 0x58], 0x10
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x40ea34
mov eax, dword [esp + 0x44]
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
cmp edi, ecx
je 0x40ea95
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x60], ecx
mov ecx, dword [edi + 0x14]
push 0
lea esi, [esp + 0x64]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
call fcn.00409150
mov ecx, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x40eb61
mov edi, dword [edi]
cmp edi, ecx
jne 0x40ea53
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov byte [esp + 0x130], 2
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], 0
cmp eax, ecx
je 0x40eaca
mov edi, dword [eax]
push eax
call esi
mov ecx, dword [esp + 0x24]
add esp, 4
mov eax, edi
cmp edi, ecx
jne 0x40eab8
push ecx
call esi
add esp, 4
push 0x423cd0
call fcn.00412610
test byte [0x423c0c], 1
jne 0x40eb0c
or dword [0x423c0c], 1
mov byte [esp + 0x130], 0xa
call fcn.0040db20
push 0x41c620
call fcn.0041946d
add esp, 4
mov byte [esp + 0x130], 2
mov edx, dword [0x423c10]
push 0xffffffffffffffff
push edx
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x423c14], 0
je 0x40eb2e
mov byte [esp + 0x17], 1
mov eax, dword [0x423c10]
mov ecx, 0xd
mov esi, 0x423c50
lea edi, [esp + 0xb4]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [esp + 0x17], 0
jne 0x40eba9
mov dword [esp + 0x18], 0x300
jmp 0x40f225
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], 0x601
mov dword [esp + 0x24], 0
cmp eax, ecx
je 0x40eb9a
mov esi, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov ecx, dword [esp + 0x24]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x40eb84
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40f225
mov eax, ebx
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ebc3
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x60]
call fcn.00401fb0
mov byte [esp + 0x130], 0xb
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ec00
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x30]
lea esi, [esp + 0x48]
call fcn.004042c0
mov edx, esi
push edx
push 0x423cb4
lea edx, [esp + 0x68]
lea ecx, [esp + 0x40]
mov byte [esp + 0x138], 0xc
call fcn.00402b40
cmp dword [esp + 0x58], 8
mov esi, eax
mov dword [esp + 0x18], esi
jb 0x40ec55
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov byte [esp + 0x130], 2
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], cx
jb 0x40ec89
mov edx, dword [esp + 0x60]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test esi, esi
jne 0x40f225
mov eax, dword [esp + 0x38]
mov esi, dword [eax]
cmp esi, eax
je 0x40edd1
mov edi, dword [esp + 0xcc]
cmp byte [0x425dd8], 0
jne 0x40eccf
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ebx, dword [esi + 8]
call fcn.0040fce0
mov ebx, dword [esp + 0x1c]
test al, al
je 0x40eccf
mov dword [esp + 0x18], 0x102
jmp 0x40ed02
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ecx, dword [esi + 8]
push eax
mov eax, dword [esp + 0xe8]
push ecx
push ebx
push eax
call edi
add esp, 0x10
mov dword [esp + 0x18], eax
cmp eax, 0x108
je 0x40edd1
cmp eax, 0x404
je 0x40ed18
test eax, eax
je 0x40ed0a
mov esi, dword [esi]
cmp esi, dword [esp + 0x38]
jne 0x40eca6
cmp dword [esp + 0x18], 0x404
jne 0x40eda6
push 0x423cd0
call fcn.00412610
mov ecx, 0x423cb4
call fcn.00403b30
test al, al
je 0x40ed92
mov eax, dword [esp + 0x38]
mov esi, dword [eax]
cmp esi, eax
je 0x40ed92
lea ebx, [ebx]
cmp byte [0x425dd8], 0
jne 0x40ed69
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ebx, dword [esi + 8]
call fcn.0040fce0
mov ebx, dword [esp + 0x1c]
test al, al
je 0x40ed69
mov dword [esp + 0x18], 0x102
jmp 0x40ed8a
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [esp + 0xec]
push ebx
push ecx
call edi
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
je 0x40ed92
mov esi, dword [esi]
cmp esi, dword [esp + 0x38]
jne 0x40ed40
mov eax, dword [esp + 0x18]
cmp eax, 0x404
jne 0x40edaa
mov dword [esp + 0x18], eax
jmp 0x40ee64
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40edd1
cmp eax, 0x404
je 0x40ee64
cmp eax, 0x1008
je 0x40ee64
mov dword [esp + 0x18], 0x1009
jmp 0x40ee64
mov eax, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
jmp 0x40edf0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40edf0
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401fb0
push 0x423cb4
mov ecx, esi
mov byte [esp + 0x134], 0xd
call fcn.00403230
test al, al
sete byte [esp + 0x17]
mov byte [esp + 0x130], 2
cmp dword [esp + 0x58], 0x10
jb 0x40ee3e
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x17], 0
je 0x40f1c3
mov eax, dword [esp + 0xe4]
push ebx
push eax
mov dword [esp + 0x20], 0x601
call dword [esp + 0xd0]
add esp, 8
test byte [0x423c0c], 1
jne 0x40ee96
or dword [0x423c0c], 1
mov byte [esp + 0x130], 0xf
call fcn.0040db20
push 0x41c620
call fcn.0041946d
add esp, 4
mov byte [esp + 0x130], 2
cmp dword [0x423c44], 0
je 0x40f0a4
mov ecx, dword [0x423c10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x423c34
or eax, 0xffffffff
lea ecx, [esp + 0x84]
call fcn.00401cf0
mov edx, dword [0x423c10]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40eef0
sub eax, esi
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401fb0
mov ecx, esi
mov eax, 0x42323c
lea ebx, [esp + 0xb4]
mov byte [esp + 0x130], 0x10
call fcn.004083d0
mov ecx, eax
mov eax, 0x423220
lea ebx, [esp + 0x104]
mov byte [esp + 0x130], 0x11
call fcn.00404d50
lea ecx, [esp + 0xe8]
mov byte [esp + 0x130], 0x12
call fcn.00401840
mov ecx, eax
lea eax, [esp + 0x7c]
lea ebx, [esp + 0x60]
mov byte [esp + 0x130], 0x13
call fcn.00404d90
mov edi, eax
lea esi, [esp + 0x98]
mov byte [esp + 0x130], 0x14
call fcn.00401c80
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x40ef96
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov edi, 7
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], cx
cmp dword [esp + 0xfc], esi
jb 0x40efc6
mov edx, dword [esp + 0xe8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov esi, 0x10
mov dword [esp + 0xfc], edi
mov dword [esp + 0xf8], ebx
mov word [esp + 0xe8], ax
cmp dword [esp + 0x118], esi
jb 0x40effd
mov ecx, dword [esp + 0x104]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov dword [esp + 0x118], edi
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
cmp dword [esp + 0xc8], esi
jb 0x40f031
mov edx, dword [esp + 0xb4]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [esp + 0x130], 2
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
cmp dword [esp + 0x58], esi
jb 0x40f062
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ebx, [esp + 0x98]
lea eax, [esp + 0xb4]
call fcn.004018b0
cmp dword [eax + 0x14], esi
jb 0x40f07c
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
cmp dword [esp + 0xc8], esi
jb 0x40f0a0
mov ecx, dword [esp + 0xb4]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, dword [esp + 0x1c]
mov eax, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f0c0
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401fb0
push 0x423cb4
mov edi, esi
mov byte [esp + 0x134], 0x15
call fcn.00403a80
cmp eax, 1
sete byte [esp + 0x17]
mov byte [esp + 0x130], 2
cmp dword [esp + 0x58], 0x10
jb 0x40f10f
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x17], 0
je 0x40f225
mov eax, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f134
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401fb0
mov byte [esp + 0x130], 0x16
mov eax, dword [0x423ccc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
push ecx
lea edx, [esp + 0x30]
push edx
push 0x423cb4
call fcn.00404640
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edi, [esp + 0x34]
mov esi, 0x423cb4
call fcn.00404130
mov edx, dword [0x423ccc]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esp + 0x58], 0x10
jb 0x40f1ac
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jmp 0x40f225
mov eax, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f1e0
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401fb0
mov edi, 0x423cb4
mov byte [esp + 0x130], 0xe
call fcn.00403d10
cmp dword [esp + 0x58], 0x10
jb 0x40f21d
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x18], 0
test byte [0x423c0c], 1
jne 0x40f24f
or dword [0x423c0c], 1
mov byte [esp + 0x130], 0x17
call fcn.0040db20
push 0x41c620
call fcn.0041946d
add esp, 4
cmp byte [0x423c15], 0
je 0x40f27b
mov edx, dword [esp + 0x18]
push edx
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
xor edi, edi
cmp dword [esp + 0x18], edi
je 0x40f2b0
push 0x41dee4
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x40f2b0
push edi
push edi
push edi
push edi
push edi
push reloc.OLEAUT32.dll_VariantCopy
push edi
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ebx, 8
cmp dword [esp + 0xac], ebx
jb 0x40f2cf
mov eax, dword [esp + 0x98]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], edi
mov word [esp + 0x98], cx
cmp dword [esp + 0x90], ebx
jb 0x40f303
mov edx, dword [esp + 0x7c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x130], 0xffffffff
mov ebx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], ax
mov edi, dword [ebx]
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
cmp edi, ebx
je 0x40f371
cmp dword [edi + 8], 0
mov ecx, dword [edi]
mov dword [esp + 0x2c], ecx
je 0x40f354
lea ecx, [edi + 8]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
mov edx, dword [edi + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
push edi
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, dword [esp + 0x30]
add esp, 4
cmp edi, ebx
jne 0x40f332
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00419346
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x41f284
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3