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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41c64a
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x424018]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x424018]
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 0x40f443
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 [0x424ce4], 1
lea edi, [esi + 1]
jne 0x40e941
or dword [0x424ce4], edi
mov byte [esp + 0x130], 3
call fcn.00410dc0
push 0x41cea0
call fcn.00419b1d
add esp, 4
mov byte [esp + 0x130], 2
test byte [0x424cb0], 1
jne 0x40e972
or dword [0x424cb0], edi
mov byte [esp + 0x130], 4
call fcn.00402900
push 0x41ce20
call fcn.00419b1d
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 0x40e988
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401f80
push 0x424cb4
mov edi, esi
mov byte [esp + 0x134], 5
call fcn.00403a20
mov byte [esp + 0x130], 2
cmp dword [esp + 0x58], 0x10
mov esi, eax
jb 0x40e9d1
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 0x40f2c5
jne 0x40ea34
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 0x40e9f6
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401f80
push 1
mov ecx, esi
push ecx
mov byte [esp + 0x138], 6
mov ecx, 0x424cd0
mov dword [esp + 0x3c], 1
call fcn.00411be0
mov byte [esp + 0x17], 1
test al, al
jne 0x40ea39
mov byte [esp + 0x17], 0
mov dword [esp + 0x130], 2
test byte [esp + 0x34], 1
je 0x40ea60
cmp dword [esp + 0x58], 0x10
jb 0x40ea60
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 0x40eb70
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 0x40ea85
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401f80
push 1
push 0x424cd0
mov edx, esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 7
call fcn.004119e0
mov byte [esp + 0x130], 9
cmp dword [esp + 0x58], 0x10
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x40ead4
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 0x40eb35
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.00409120
mov ecx, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x40ec01
mov edi, dword [edi]
cmp edi, ecx
jne 0x40eaf3
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 0x40eb6a
mov edi, dword [eax]
push eax
call esi
mov ecx, dword [esp + 0x24]
add esp, 4
mov eax, edi
cmp edi, ecx
jne 0x40eb58
push ecx
call esi
add esp, 4
push 0x424cd0
call fcn.00412a00
test byte [0x424c0c], 1
jne 0x40ebac
or dword [0x424c0c], 1
mov byte [esp + 0x130], 0xa
call fcn.0040dbc0
push 0x41cdb0
call fcn.00419b1d
add esp, 4
mov byte [esp + 0x130], 2
mov edx, dword [0x424c10]
push 0xffffffffffffffff
push edx
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x424c14], 0
je 0x40ebce
mov byte [esp + 0x17], 1
mov eax, dword [0x424c10]
mov ecx, 0xd
mov esi, 0x424c50
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 0x40ec49
mov dword [esp + 0x18], 0x300
jmp 0x40f2c5
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 0x40ec3a
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 0x40ec24
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40f2c5
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 0x40ec63
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x60]
call fcn.00401f80
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 0x40eca0
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x30]
lea esi, [esp + 0x48]
call fcn.00404250
mov edx, esi
push edx
push 0x424cb4
lea edx, [esp + 0x68]
lea ecx, [esp + 0x40]
mov byte [esp + 0x138], 0xc
call fcn.00402ab0
cmp dword [esp + 0x58], 8
mov esi, eax
mov dword [esp + 0x18], esi
jb 0x40ecf5
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 0x40ed29
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 0x40f2c5
mov eax, dword [esp + 0x38]
mov esi, dword [eax]
cmp esi, eax
je 0x40ee71
mov edi, dword [esp + 0xcc]
cmp byte [0x426dd8], 0
jne 0x40ed6f
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ebx, dword [esi + 8]
call fcn.00410080
mov ebx, dword [esp + 0x1c]
test al, al
je 0x40ed6f
mov dword [esp + 0x18], 0x102
jmp 0x40eda2
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 0x40ee71
cmp eax, 0x404
je 0x40edb8
test eax, eax
je 0x40edaa
mov esi, dword [esi]
cmp esi, dword [esp + 0x38]
jne 0x40ed46
cmp dword [esp + 0x18], 0x404
jne 0x40ee46
push 0x424cd0
call fcn.00412a00
mov ecx, 0x424cb4
call fcn.00403ad0
test al, al
je 0x40ee32
mov eax, dword [esp + 0x38]
mov esi, dword [eax]
cmp esi, eax
je 0x40ee32
lea ebx, [ebx]
cmp byte [0x426dd8], 0
jne 0x40ee09
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ebx, dword [esi + 8]
call fcn.00410080
mov ebx, dword [esp + 0x1c]
test al, al
je 0x40ee09
mov dword [esp + 0x18], 0x102
jmp 0x40ee2a
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 0x40ee32
mov esi, dword [esi]
cmp esi, dword [esp + 0x38]
jne 0x40ede0
mov eax, dword [esp + 0x18]
cmp eax, 0x404
jne 0x40ee4a
mov dword [esp + 0x18], eax
jmp 0x40ef04
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ee71
cmp eax, 0x404
je 0x40ef04
cmp eax, 0x1008
je 0x40ef04
mov dword [esp + 0x18], 0x1009
jmp 0x40ef04
mov eax, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
jmp 0x40ee90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ee90
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401f80
push 0x424cb4
mov ecx, esi
mov byte [esp + 0x134], 0xd
call fcn.004031d0
test al, al
sete byte [esp + 0x17]
mov byte [esp + 0x130], 2
cmp dword [esp + 0x58], 0x10
jb 0x40eede
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 0x40f263
mov eax, dword [esp + 0xe4]
push ebx
push eax
mov dword [esp + 0x20], 0x601
call dword [esp + 0xd0]
add esp, 8
test byte [0x424c0c], 1
jne 0x40ef36
or dword [0x424c0c], 1
mov byte [esp + 0x130], 0xf
call fcn.0040dbc0
push 0x41cdb0
call fcn.00419b1d
add esp, 4
mov byte [esp + 0x130], 2
cmp dword [0x424c44], 0
je 0x40f144
mov ecx, dword [0x424c10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x424c34
or eax, 0xffffffff
lea ecx, [esp + 0x84]
call fcn.00401cc0
mov edx, dword [0x424c10]
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 0x40ef90
sub eax, esi
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401f80
mov ecx, esi
mov eax, 0x42423c
lea ebx, [esp + 0xb4]
mov byte [esp + 0x130], 0x10
call fcn.004083a0
mov ecx, eax
mov eax, 0x424220
lea ebx, [esp + 0x104]
mov byte [esp + 0x130], 0x11
call fcn.00404ce0
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.00404d20
mov edi, eax
lea esi, [esp + 0x98]
mov byte [esp + 0x130], 0x14
call fcn.00401c50
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x40f036
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 0x40f066
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 0x40f09d
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 0x40f0d1
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 0x40f102
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 0x40f11c
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
cmp dword [esp + 0xc8], esi
jb 0x40f140
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 0x40f160
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401f80
push 0x424cb4
mov edi, esi
mov byte [esp + 0x134], 0x15
call fcn.00403a20
cmp eax, 1
sete byte [esp + 0x17]
mov byte [esp + 0x130], 2
cmp dword [esp + 0x58], 0x10
jb 0x40f1af
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 0x40f2c5
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 0x40f1d4
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401f80
mov byte [esp + 0x130], 0x16
mov eax, dword [0x424ccc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
push ecx
lea edx, [esp + 0x30]
push edx
push 0x424cb4
call fcn.004045d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edi, [esp + 0x34]
mov esi, 0x424cb4
call fcn.004040c0
mov edx, dword [0x424ccc]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esp + 0x58], 0x10
jb 0x40f24c
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 0x40f2c5
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 0x40f280
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.00401f80
mov edi, 0x424cb4
mov byte [esp + 0x130], 0xe
call fcn.00403cb0
cmp dword [esp + 0x58], 0x10
jb 0x40f2bd
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 [0x424c0c], 1
jne 0x40f2ef
or dword [0x424c0c], 1
mov byte [esp + 0x130], 0x17
call fcn.0040dbc0
push 0x41cdb0
call fcn.00419b1d
add esp, 4
cmp byte [0x424c15], 0
je 0x40f31b
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 0x40f350
push 0x41eee4
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x40f350
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 0x40f36f
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 0x40f3a3
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 0x40f411
cmp dword [edi + 8], 0
mov ecx, dword [edi]
mov dword [esp + 0x2c], ecx
je 0x40f3f4
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 0x40f3d2
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.004199f6
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 0x420324
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3