Function at 0x404100
Capabilities:
Terminate process

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
test esi, esi
push edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], eax
je 0x4043b8
push 4
push str.FILE
push esi
call fcn.0041caf0
add esp, 0xc
test eax, eax
je 0x404156
push str.strncmp__char__mftptr__MultiSectorHeader.Signature__FILE__4_0
push 0x859
push str.E:_srcundelete_ntfs.cpp
call fcn.004025a0
add esp, 0xc
cmp eax, 1
jne 0x404156
push eax
call fcn.0041c4fb
cmp word [esi + 0x14], 0x400
jb 0x404180
push str.mftptr__FirstAttributeOffset___1024
push 0x85a
push str.E:_srcundelete_ntfs.cpp
call fcn.004025a0
add esp, 0xc
cmp eax, 1
jne 0x404180
push eax
call fcn.0041c4fb
xor edi, edi
mov di, word [esi + 0x14]
mov eax, dword [edi + esi]
add edi, esi
cmp eax, 0xffffffff
je 0x4043b8
mov ebx, dword [esp + 0x7c]
cmp eax, ebx
ja 0x4043b8
jne 0x40421a
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x40421a
mov ebp, dword [esp + 0x80]
test ebp, ebp
je 0x4043c2
mov al, byte [edi + 9]
test al, al
jne 0x4041ce
cmp word [ebp], 0
je 0x4043c2
xor ecx, ecx
mov cl, byte [edi + 9]
push ebp
mov esi, ecx
call fcn.0041cac4
add esp, 4
cmp esi, eax
jne 0x404221
xor edx, edx
mov dx, word [edi + 0xa]
push esi
lea eax, [esp + 0x24]
add edx, edi
push edx
push eax
call fcn.0041ca87
xor ecx, ecx
mov cl, byte [edi + 9]
lea edx, [esp + 0x2c]
push edx
push ebp
mov word [esp + ecx*2 + 0x34], 0
call fcn.0042d732
add esp, 0x14
test eax, eax
je 0x4043c2
jmp 0x404221
mov ebp, dword [esp + 0x80]
mov eax, dword [edi]
cmp eax, ebx
jne 0x404233
dec dword [esp + 0x84]
jmp 0x4043a7
cmp ebx, 0x30
je 0x4043a7
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x4043a7
cmp eax, 0x20
jne 0x4043a7
test edi, edi
mov byte [esp + 0x13], 1
jne 0x404260
xor eax, eax
xor ecx, ecx
jmp 0x404274
mov al, byte [edi + 8]
test al, al
jne 0x40426e
mov eax, dword [edi + 0x10]
xor ecx, ecx
jmp 0x404274
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
push 1
push ecx
push eax
mov eax, dword [esp + 0x80]
push 0
push 0
push edi
push eax
call fcn.004037c0
xor ecx, ecx
add esp, 0x1c
cmp edi, ecx
mov esi, eax
jne 0x404299
xor eax, eax
jmp 0x4042ab
mov al, byte [edi + 8]
test al, al
jne 0x4042a5
mov eax, dword [edi + 0x10]
jmp 0x4042ab
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
test esi, esi
mov dword [esp + 0x1c], ecx
lea ebx, [eax + esi]
je 0x4043a7
cmp esi, ebx
jae 0x4043a7
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4043a7
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
ja 0x4043a7
jne 0x404357
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x404357
test ebp, ebp
je 0x404371
mov al, byte [esi + 6]
test al, al
jne 0x4042f9
cmp word [ebp], 0
je 0x404371
mov eax, dword [esp + 0x80]
xor edx, edx
mov dl, byte [esi + 6]
push eax
mov ebp, edx
call fcn.0041cac4
add esp, 4
cmp ebp, eax
jne 0x40434c
xor ecx, ecx
mov cl, byte [esi + 7]
push ebp
lea edx, [esp + 0x24]
add ecx, esi
push ecx
push edx
call fcn.0041ca87
mov edx, dword [esp + 0x8c]
xor eax, eax
mov al, byte [esi + 6]
lea ecx, [esp + 0x2c]
push ecx
push edx
mov word [esp + eax*2 + 0x34], 0
call fcn.0042d732
add esp, 0x14
test eax, eax
je 0x404371
mov ebp, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
cmp dword [esi], ecx
jne 0x40435f
dec dword [esp + 0x14]
xor eax, eax
mov ax, word [esi + 4]
add esi, eax
cmp esi, ebx
jb 0x4042c2
jmp 0x4043a7
mov esi, dword [esi + 0x10]
test esi, esi
je 0x4043a7
mov ecx, dword [esp + 0x74]
push 0
push esi
push ecx
call fcn.004046e0
add esp, 0xc
test eax, eax
je 0x4043a7
mov edx, dword [esp + 0x7c]
xor edi, edi
mov di, word [eax + 0x14]
mov dword [esp + 0x84], 0
add edi, eax
cmp dword [edi], edx
je 0x4043c2
mov edx, dword [edi + 4]
mov eax, dword [edi + edx]
add edi, edx
cmp eax, 0xffffffff
jne 0x404194
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret