Function at 0x4044d0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447ce6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x45b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0xf
movups xmmword [ecx], xmm0
push str.sc_stop_HookDrv
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00401a50
call fcn.004042f0
mov ecx, esp
xorps xmm0, xmm0
push 0x11
push str.sc_delete_HookDrv
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00401a50
call fcn.004042f0
add esp, 0x18
push 0x4570c0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xe
mov byte [ebp - 0xd0], 0
lea ecx, [ebp - 0x108]
push 0x4570c0
push dword [ebp - 0xd0]
call fcn.00406180
add esp, 0xc
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0
call fcn.00404190
test al, al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xf4]
sete al
mov byte [ebp - 0xc9], al
cmp ecx, 8
jb 0x4045fc
mov edx, dword [ebp - 0x108]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4045ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4045ec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407d42
mov al, byte [ebp - 0xc9]
add esp, 8
test al, al
je 0x4047bf
xorps xmm0, xmm0
mov dword [ebp - 0xe0], 0
push 0x20
movups xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xdc], 7
call fcn.00407d12
movups xmm0, xmmword [str.C:HookDrv.sys]
mov dword [ebp - 0xf0], eax
add esp, 4
mov dword [ebp - 0xe0], 0xe
mov dword [ebp - 0xdc], 0xf
movups xmmword [eax], xmm0
movq xmm0, qword [0x4570e0]
movq qword [eax + 0x10], xmm0
mov ecx, dword [0x4570e8]
mov dword [eax + 0x18], ecx
xor ecx, ecx
mov word [eax + 0x1c], cx
push 0xb0
push ecx
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], 1
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0xdc], 8
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0xc8]
cmovae eax, dword [ebp - 0xf0]
push eax
call fcn.00405320
push 0
push 0x2f70
push 0x453e18
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
lea ecx, [ebp - 0xc4]
je 0x404709
call fcn.00405730
test eax, eax
jne 0x4046f5
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0xc8]
call fcn.00404410
mov byte [ebp - 0xc9], 0
jmp 0x40473d
call fcn.00405730
test eax, eax
jne 0x40472b
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0xc8]
call fcn.00404410
mov byte [ebp - 0xc9], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xdc]
cmp ecx, 8
jb 0x404786
mov edx, dword [ebp - 0xf0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40477c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40477c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407d42
add esp, 8
xor eax, eax
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 7
mov word [ebp - 0xf0], ax
cmp byte [ebp - 0xc9], al
je 0x404834
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.____Driver_buffer_created_into_image_n
call fcn.004027e0
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x35
movups xmmword [ecx], xmm0
push str.sc_create_HookDrv_binpathC:HookDrv.sys_typefilesys
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00401a50
call fcn.004042f0
mov ecx, esp
xorps xmm0, xmm0
push 0x10
push str.sc_start_HookDrv
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00401a50
call fcn.004042f0
add esp, 0x18
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407d04
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xor eax, eax
jmp 0x404818