Function at 0x407450
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x74], 0
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], 0xc0000001
mov byte [ebp - 0x41], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 0x18
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], 0x240
mov edx, dword [ebp + 8]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push 0
push 0
push 0x60
push 1
push 1
push 0x80
push 0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0x100001
lea edx, [ebp - 0x2c]
push edx
call sub.ntoskrnl.exe_NtCreateFile
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jge 0x4074fa
jmp 0x40764a
push 5
push 0x18
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call sub.ntoskrnl.exe_NtQueryInformationFile
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jge 0x40751d
jmp 0x40764a
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7d000
jbe 0x407538
mov dword [ebp - 0x6c], 0xc0000904
jmp 0x40764a
mov ecx, dword [ebp - 0x24]
add ecx, 4
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x40755c
mov dword [ebp - 0x6c], 0xc0000017
jmp 0x40764a
push 0
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
call sub.ntoskrnl.exe_NtReadFile
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jge 0x40758b
jmp 0x40764a
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x78]
mov al, byte [edx]
mov byte [ebp - 0x41], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], 0
jmp 0x4075ba
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
sub ecx, 1
cmp dword [ebp - 0x28], ecx
jae 0x407642
movzx edx, byte [ebp - 0x41]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x28]
movsx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x28]
mov byte [edx], cl
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x28]
movsx ecx, byte [eax]
cmp ecx, 0x3b
jne 0x40763d
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x28]
sub eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004071a0
test eax, eax
jne 0x40760e
mov dword [ebp - 0x6c], 0xc000000d
jmp 0x407642
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x28]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00406f20
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x40]
push edx
call fcn.004073f0
cmp dword [ebp - 0x6c], 0
jge 0x40763d
jmp 0x407642
jmp 0x4075b1
xor eax, eax
jne 0x40749c
cmp dword [ebp - 0x2c], 0
je 0x407659
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.ntoskrnl.exe_NtClose
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x78], 0
je 0x407672
push 0
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x6c]
mov esp, ebp
pop ebp
ret 4