Function at 0x404809
Capabilities:
Read file on windows

Disassembly:
jmp 0x4289a0
push ebp
lea ebp, [esp - 0x4f4]
sub esp, 0x4f4
push 0xffffffffffffffff
push 0x5532f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x589780]
xor eax, ebp
mov dword [ebp + 0x4f0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebx]
call dword [eax + 0x18]
mov ecx, dword [ebx + 0x14]
call fcn.00401956
push 0xc
call fcn.00403972
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x428a10
mov ecx, eax
call fcn.0040be97
jmp 0x428a12
xor eax, eax
mov esi, dword [ebx + 0x1c]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 8
mov dword [ebx + 0x1c], eax
test esi, esi
je 0x428a3c
mov ecx, esi
call fcn.0040a065
push 0xc
push esi
call fcn.0040246e
add esp, 8
lea eax, [ebp + 0xc0]
push 0
push eax
call fcn.0042a1d0
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0040b442
push eax
lea ecx, [ebp + 0x78]
call fcn.0040118b
mov ecx, dword [ebp + 0xd4]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x428aa8
mov edx, dword [ebp + 0xc0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x428a9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428fd8
push ecx
push edx
call fcn.0040246e
add esp, 8
xor eax, eax
mov dword [ebp + 0xd0], 0
mov word [ebp + 0xc0], ax
mov eax, dword [ebp + 0x88]
test eax, eax
mov dword [ebp + 0xd4], 7
sete cl
mov byte [ebp - 0x15], cl
test eax, eax
jne 0x428b21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push 0x74
push str.C:projectsentryprotect_src_service_srcentryprotectservice.cpp
lea eax, [ebp + 0xf0]
push str._s__d_:___u__u__assert_failed__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0xf0]
push eax
call fcn.0040946c
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov cl, byte [ebp - 0x15]
test cl, cl
jne 0x428f7c
mov byte [ebp - 0x10], cl
lea eax, [ebp + 0x30]
push dword [ebp - 0x10]
push str.entryprotect.dll
push eax
call fcn.00407a0e
mov byte [ebp - 0x10], 0
lea eax, [ebp + 0x48]
push dword [ebp - 0x10]
mov byte [ebp - 4], 4
push 0x562904
push eax
call fcn.0040b5a5
add esp, 0x18
lea eax, [ebp + 0x78]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp + 0x60]
call fcn.0040118b
lea eax, [ebp + 0x48]
mov dword [ebp - 0x14], 0x88
push eax
lea ecx, [ebp + 0x60]
call fcn.004044a8
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0xa8]
push eax
call fcn.00403b3e
add esp, 0xc
mov dword [ebp - 0x14], 8
lea ecx, [ebp + 0x60]
call fcn.004011d1
lea ecx, [ebp + 0x48]
call fcn.004011d1
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xa
call fcn.004011d1
mov byte [ebp - 0x10], 0
lea eax, [ebp]
push dword [ebp - 0x10]
push str.entryprotect.dll
push eax
call fcn.00407a0e
mov byte [ebp - 0x10], 0
lea eax, [ebp + 0x18]
push dword [ebp - 0x10]
mov byte [ebp - 4], 0xb
push 0x562908
push eax
call fcn.0040b5a5
add esp, 0x18
lea eax, [ebp + 0x78]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp + 0xc0]
call fcn.0040118b
lea eax, [ebp + 0x18]
mov dword [ebp - 0x14], 0x28
push eax
lea ecx, [ebp + 0xc0]
call fcn.004044a8
lea eax, [ebp]
push eax
lea eax, [ebp + 0xc0]
push eax
lea eax, [ebp + 0x90]
push eax
call fcn.00403b3e
add esp, 0xc
mov esi, 8
lea ecx, [ebp + 0xc0]
call fcn.004011d1
lea ecx, [ebp + 0x18]
call fcn.004011d1
lea ecx, [ebp]
mov byte [ebp - 4], 0x11
call fcn.004011d1
mov ecx, dword [ebx + 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.0040a317
push 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x12
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x428d40
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x20]
je 0x428c94
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
add dword [ebp - 0x24], 4
jmp 0x428ca1
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040b8c0
push dword [ebp - 0x14]
push 0
push 0x100438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x428d13
cmp eax, 0xffffffff
je 0x428d13
mov dword [ebp - 0x2c], 0
push 0x20
mov byte [ebp - 4], 0x14
call fcn.00403972
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x428cf3
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0xa8]
push ecx
mov ecx, eax
call fcn.00402efa
mov edx, eax
jmp 0x428cf5
xor edx, edx
mov ecx, dword [ebx + 0x14]
or esi, 4
push ecx
mov eax, esp
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x2c], 0
mov dword [eax], edx
call fcn.00401410
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0x12
test eax, eax
je 0x428d23
cmp eax, 0xffffffff
je 0x428d23
push eax
call edi
push 0
lea eax, [ebp - 0x30]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x428c81
mov esi, dword [ebx + 0x14]
push 4
call fcn.00403972
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x428d5b
mov dword [ecx], vtable.DriverLoadOperation.0
jmp 0x428d5d
xor ecx, ecx
push ecx
mov eax, esp
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x1c], 0
mov dword [eax], ecx
mov ecx, esi
call fcn.00401410
lea eax, [ebp + 0xd8]
mov byte [ebp - 4], 0x12
push eax
mov ecx, ebx
call fcn.0040850d
push 0x64
mov byte [ebp - 4], 0x17
call fcn.00403972
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x18
test eax, eax
je 0x428db1
lea ecx, [ebp + 0xa8]
push ecx
mov ecx, eax
call fcn.004067c1
mov esi, eax
jmp 0x428db3
xor esi, esi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0x19
lea eax, [ebp + 0xd8]
cmp ecx, eax
je 0x428de1
cmp dword [ebp + 0xec], 7
push dword [ebp + 0xe8]
cmova eax, dword [ebp + 0xd8]
push eax
call fcn.0040128a
lea ecx, [esi + 0x54]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x428dfd
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub eax, edx
sar eax, 2
push eax
push edx
call fcn.00402360
mov ecx, dword [ebx + 0x14]
push ecx
mov eax, esp
mov dword [ebp - 0x10], 0
mov dword [eax], esi
call fcn.00401410
lea ecx, [ebp - 0x10]
call fcn.0040a7ea
mov ecx, dword [ebp + 0xec]
cmp ecx, 7
jbe 0x428e59
mov edx, dword [ebp + 0xd8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x428e4f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428fdd
push ecx
push edx
call fcn.0040246e
add esp, 8
mov edx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp + 0xe8], 0
mov dword [ebp + 0xec], 7
mov word [ebp + 0xd8], ax
test edx, edx
je 0x428ec2
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x428ea3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428fdd
push ecx
push edx
call fcn.0040246e
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 0xa4]
cmp ecx, 7
jbe 0x428f02
mov edx, dword [ebp + 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x428ef8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428fdd
push ecx
push edx
call fcn.0040246e
add esp, 8
mov ecx, dword [ebp + 0xbc]
xor eax, eax
mov dword [ebp + 0xa0], 0
mov dword [ebp + 0xa4], 7
mov word [ebp + 0x90], ax
cmp ecx, 7
jbe 0x428f5f
mov edx, dword [ebp + 0xa8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x428f55
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428fdd
push ecx
push edx
call fcn.0040246e
add esp, 8
xor eax, eax
mov dword [ebp + 0xb8], 0
mov dword [ebp + 0xbc], 7
mov word [ebp + 0xa8], ax
mov ecx, dword [ebp + 0x8c]
cmp ecx, 7
jbe 0x428fb5
mov edx, dword [ebp + 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x428fab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428fdd
push ecx
push edx
call fcn.0040246e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4f0]
xor ecx, ebp
call fcn.0040512d
lea esp, [ebp + 0x4f4]
pop ebp
ret
call fcn.00408139
call fcn.00408139
int3