Function at 0x4046e0
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44f62b
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
mov ebx, dword [esp + 0x1d0]
push ebp
push esi
push edi
mov edi, dword [0x46bddc]
inc edi
push ebx
mov dword [0x46bddc], edi
call fcn.00404510
add esp, 4
test eax, eax
jne 0x404e3b
mov ecx, dword [0x46bde0]
mov esi, dword [0x46bb84]
mov edi, dword [esp + 0x1d8]
inc ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
cmp dword [0x46b14c], 4
mov dword [0x46bde0], ecx
mov dword [esp + 0x28], ebx
mov ebp, dword [esi + 0x144]
mov dword [esp + 0x14], ebp
jb 0x4047d4
mov al, byte [esi + 0x141]
test al, al
jne 0x4047d4
mov al, byte [esi + 0x142]
test al, al
jne 0x4047d4
mov al, byte [esp + 0x1e0]
test al, al
jne 0x4047d4
cmp dword [0x46b158], 2
jne 0x4047d4
mov eax, dword [esi + 0x30]
add eax, 0xc
push eax
mov ecx, ebp
push ecx
push 8
lea edx, [esp + 0x34]
push edx
push 0x90068
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
push edi
call fcn.00402360
test eax, eax
je 0x40484d
call fcn.004028e0
push str.Sever_error_trying_to_read_MFT_record
call fcn.00401960
mov esi, dword [0x46bb84]
add esp, 4
mov dword [esp + 0x18], 0
test ebx, ebx
je 0x4047f9
mov eax, dword [0x46bb88]
test eax, eax
jne 0x4047f9
push 0
push 0
push edi
call fcn.004046e0
mov esi, dword [0x46bb84]
add esp, 0xc
mov dword [0x46bb88], eax
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jne 0x404970
mov dword [0x46bd18], eax
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x2c]
push edx
push eax
push 0
push ecx
call fcn.0041c860
push 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov ecx, dword [esi + 0x30]
push 0x1000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, eax
test ebp, ebp
jne 0x404920
jmp 0x404e3b
mov esi, dword [0x46bb84]
mov ecx, dword [esi + 0x30]
mov eax, dword [esp + 0x34]
add ecx, 0xc
cmp eax, ecx
mov dword [esp + 0x18], eax
je 0x40488d
push str.IoStatusBlock.InformationVcb__BytesPerFileRecordSegment12
push 0x9a6
push str.E:_srcundelete_ntfs.cpp
call fcn.004025a0
add esp, 0xc
cmp eax, 1
jne 0x404887
push eax
call fcn.0041c4fb
mov esi, dword [0x46bb84]
cmp dword [ebp], ebx
jne 0x4047d4
xor eax, eax
lea ecx, [esi + 0x148]
cmp dword [ecx], 0
jne 0x4048ae
inc eax
add ecx, 4
cmp eax, 4
jl 0x40489e
jmp 0x4048ca
mov ebp, dword [esi + eax*4 + 0x148]
test ebp, ebp
mov dword [esi + eax*4 + 0x148], 0
jne 0x4048f2
mov esi, dword [0x46bb84]
mov eax, dword [0x46bde4]
push 4
inc eax
mov dword [0x46bde4], eax
mov edx, dword [esi + 0x30]
push 0x1000
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, eax
test ebp, ebp
je 0x404e3b
mov eax, dword [0x46bb84]
mov ecx, dword [eax + 0x30]
mov edx, dword [esp + 0x14]
mov eax, ecx
shr ecx, 2
lea esi, [edx + 0xc]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.00404460
add esp, 8
jmp 0x404e39
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x24]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40493d
call fcn.004028e0
mov edx, dword [0x46bb84]
push 0
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0
mov eax, dword [edx + 0x30]
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404aae
call fcn.004028e0
jmp 0x404aae
mov ecx, dword [0x46bb88]
push 0
push 0
push 0x20
push ecx
push edi
call fcn.00404100
add esp, 0x14
xor ecx, ecx
test eax, eax
je 0x4049b5
mov cl, byte [eax + 8]
test cl, cl
jne 0x40499a
mov ecx, dword [eax + 0x10]
xor edx, edx
jmp 0x4049a0
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
push 1
push edx
push ecx
push 0
push 0
push eax
push 0
call fcn.004037c0
add esp, 0x1c
mov ecx, eax
xor ebp, ebp
test ecx, ecx
je 0x404a75
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x404a75
mov esi, dword [0x46bb84]
cmp eax, 0x80
ja 0x404a18
jne 0x404a00
mov eax, dword [esi + 0x30]
mov edi, dword [ecx + 0xc]
imul eax, ebx
xor edx, edx
div dword [esi + 0x2c]
xor edx, edx
cmp edi, edx
jg 0x404a11
jl 0x4049f6
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x404a11
mov ebp, dword [ecx + 0x10]
mov edi, dword [esp + 0x1d8]
xor eax, eax
mov ax, word [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x4049d0
jmp 0x404a18
mov edi, dword [esp + 0x1d8]
test ebp, ebp
jle 0x404a75
cmp ebp, 0x64
jge 0x404a2c
mov eax, dword [ebp*4 + 0x46bb88]
test eax, eax
jne 0x404a38
push 0
push ebp
push edi
call fcn.004046e0
add esp, 0xc
test eax, eax
mov dword [0x46bd18], eax
jne 0x404a5e
push 0x10000
push str.Fatal_Error
push str.Couldnt_read_MFT_extension
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0041c4fb
push 0
push 0
push 0x80
push eax
push edi
call fcn.00404100
add esp, 0x14
test eax, eax
jne 0x404a8e
mov ecx, dword [0x46bb88]
push 0
push 0
push 0x80
push ecx
push edi
call fcn.00404100
add esp, 0x14
mov edx, dword [0x46bb84]
mov ecx, dword [edx + 0x30]
push 1
push 0
push ecx
imul ecx, ebx
push 0
push ecx
push eax
push edi
call fcn.004037c0
add esp, 0x1c
mov ebp, eax
test ebp, ebp
jne 0x404ab9
xor eax, eax
jmp 0x404e3b
mov eax, dword [0x46bd80]
mov ecx, dword [0x46bd84]
mov edx, dword [0x4666b4]
mov dword [0x46bd88], eax
mov dword [0x46bd8c], ecx
mov dword [esp + 0x10], edx
mov eax, dword [0x46bb84]
mov cl, byte [eax + 0x141]
test cl, cl
mov dword [esp + 0x1d0], 0
je 0x404b22
cmp byte [ebp], 0
jne 0x404b22
cmp word [ebp + 4], 0
jne 0x404b22
cmp word [ebp + 6], 0
jne 0x404b22
lea ecx, [esp + 0x10]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.00434de3
xor eax, eax
jmp 0x404e3b
push 4
push str.FILE
push ebp
call fcn.0041caf0
add esp, 0xc
test eax, eax
je 0x404bba
mov ecx, dword [0x46bd84]
mov edx, dword [0x46bd80]
push ebp
push ecx
push edx
push ebx
lea eax, [esp + 0x20]
push str.Read_MFT:_not_an_MFT__mft_num___d_at_LCN__d__eyecatcher_s
push eax
call fcn.0042e13c
mov ecx, dword [0x46bb84]
mov al, byte [ecx + 0x141]
add esp, 0x18
test al, al
jne 0x404b9f
mov eax, dword [0x46b204]
test eax, eax
je 0x404b88
mov edx, ebx
shr edx, 5
mov eax, dword [eax + edx*4]
mov ecx, ebx
and ecx, 0x1f
shr eax, cl
test al, 1
je 0x404b9f
mov ecx, dword [esp + 0x10]
push 0x10000
push str.Tried_to_read_an_MFT_record
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.00434de3
xor eax, eax
jmp 0x404e3b
cmp word [ebp + 4], 0
mov esi, 0x2a
jne 0x404bca
mov word [ebp + 4], si
cmp word [ebp + 4], si
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
je 0x404c1c
mov ecx, dword [0x46bd84]
xor edx, edx
mov dx, word [ebp + 6]
xor eax, eax
mov ax, word [ebp + 4]
push edx
mov edx, dword [0x46bd80]
push eax
push ecx
push edx
push ebx
lea eax, [esp + 0x24]
push str.Read_MFT:_Fixup_offset_different_from_expected__mft_num___d_at_LCN__d__fixup_d_len__d
push eax
call fcn.0042e13c
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
push 0x10000
push str.Unexpected_fixup_offset_in_MFT
push ecx
push 0
call edi
mov word [ebp + 4], si
cmp word [ebp + 6], 0
jne 0x404c36
mov ecx, dword [0x46bb84]
mov eax, dword [ecx + 0x30]
xor edx, edx
div dword [ecx + 0x28]
inc eax
mov word [ebp + 6], ax
mov esi, dword [0x46bb84]
mov ecx, dword [esi + 0x30]
xor edx, edx
mov eax, ecx
div dword [esi + 0x28]
xor edx, edx
mov dx, word [ebp + 6]
inc eax
cmp edx, eax
je 0x404cbf
xor eax, eax
mov ax, dx
mov edx, dword [0x46bd84]
xor ecx, ecx
mov cx, word [ebp + 4]
push eax
mov eax, dword [0x46bd80]
push ecx
push edx
push eax
push ebx
lea ecx, [esp + 0x24]
push str.Read_MFT:_Fixup_length_wrong__mft_num___d_at_LCN__d__fixup_d_len__d
push ecx
call fcn.0042e13c
mov edx, dword [esp + 0x2c]
add esp, 0x1c
push 0x10000
push str.Unexpected_fixup_length_in_MFT
push edx
push 0
call edi
mov ecx, dword [0x46bb84]
mov eax, dword [ecx + 0x30]
xor edx, edx
div dword [ecx + 0x28]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1d0], 0xffffffff
inc eax
mov word [ebp + 6], ax
call fcn.00434de3
xor eax, eax
jmp 0x404e3b
push ecx
push ebp
call fcn.004043d0
push 4
push str.FILE
push ebp
call fcn.0041caf0
add esp, 0xc
test eax, eax
je 0x404d54
mov eax, dword [0x46bd84]
mov ecx, dword [0x46bd80]
push ebp
push eax
push ecx
push ebx
lea edx, [esp + 0x20]
push str.Read_MFT_with_bad_fixups__mft_num___d_at_LCN__d__eyecatcher_s
push edx
call fcn.0042e13c
mov eax, dword [0x46bb84]
mov cl, byte [eax + 0x141]
add esp, 0x18
test cl, cl
jne 0x404d39
mov eax, dword [0x46b204]
test eax, eax
je 0x404d26
mov edx, ebx
shr edx, 5
mov eax, dword [eax + edx*4]
mov ecx, ebx
and ecx, 0x1f
shr eax, cl
test al, 1
je 0x404d39
mov ecx, dword [esp + 0x10]
push 0x10000
push str.Tried_to_read_an_MFT_record
push ecx
push 0
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.00434de3
xor eax, eax
jmp 0x404e3b
push ebx
push ebp
call fcn.00404460
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
jbe 0x404e25
mov eax, dword [0x46b204]
test eax, eax
je 0x404e25
mov edx, ebx
shr edx, 5
mov eax, dword [eax + edx*4]
mov ecx, ebx
and ecx, 0x1f
shr eax, cl
mov ecx, dword [esp + 0x14]
test al, 1
mov eax, dword [ecx]
jne 0x404dd5
cmp ebx, eax
jne 0x404e25
mov edx, dword [ecx + 4]
xor eax, eax
cmp eax, edx
jne 0x404e25
mov ecx, dword [0x46bb84]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x30]
lea edi, [edx + 0xc]
mov esi, ebp
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404e25
push 0x10000
push str.Error
push str.Deleted_MFT_Record_doesnt_match
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x404e25
cmp ebx, eax
jne 0x404de2
mov edx, dword [ecx + 4]
xor eax, eax
cmp eax, edx
je 0x404df6
cmp ebx, 0x10
jbe 0x404e25
push str.We_tried_to_read_an_MFT_we_thoughtwas_valid__but_MFT_is_deleted
call fcn.00401960
add esp, 4
jmp 0x404e25
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x18]
lea edi, [edx + 0xc]
mov esi, ebp
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404e25
push ebx
lea ecx, [esp + 0x3c]
push str.Tried_to_find_MFT_record__d_but_could_not_n
push ecx
call fcn.0041cb28
lea edx, [esp + 0x44]
push edx
call fcn.00401960
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.00434de3
mov eax, ebp
mov ecx, dword [esp + 0x1c8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c4
ret