Function at 0x40e360
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f96f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x4666b4]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], eax
push 0x46b118
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.00434f6c
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x40e68e
cmp esi, 5
je 0x40e69b
cmp esi, ebx
je 0x40e68e
mov ecx, dword [0x46bb84]
mov edx, dword [ecx + 0x60]
push 1
push esi
push edx
mov byte [ebp - 4], 2
call fcn.004046e0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40e40a
push eax
mov eax, dword [0x46bb84]
mov ecx, dword [eax + 0x60]
push esi
push ecx
call fcn.004046e0
add esp, 0xc
mov edi, eax
jmp 0x40e40a
test edi, edi
mov dword [ebp - 4], 1
jne 0x40e445
lea edx, [ebp - 0x14]
push edx
push 0x463f90
lea eax, [ebp + 0xc]
push eax
call fcn.004350ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00434f1c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00434de3
jmp 0x40e68e
push 4
push str.FILE
push edi
call fcn.0041caf0
add esp, 0xc
test eax, eax
je 0x40e47b
push str.strncmp__char__mftptr__MultiSectorHeader.Signature__FILE__4_0
push 0xfa
push str.E:_srcundeleteundeleteDoc.cpp
call fcn.004025a0
add esp, 0xc
cmp eax, 1
jne 0x40e47b
push eax
call fcn.0041c4fb
cmp word [edi + 0x14], 0x400
jb 0x40e4a5
push str.mftptr__FirstAttributeOffset___1024
push 0xfb
push str.E:_srcundeleteundeleteDoc.cpp
call fcn.004025a0
add esp, 0xc
cmp eax, 1
jne 0x40e4a5
push eax
call fcn.0041c4fb
mov ecx, dword [0x46bb84]
mov edx, dword [ecx + 0x60]
push 0
push str._I30
push 0x90
push edi
push edx
call fcn.00404100
add esp, 0x14
test eax, eax
je 0x40e51d
or byte [edi + 0x16], 2
mov edx, dword [0x46bb84]
mov eax, dword [edx + 0x60]
push 0
push 0
push 0x10
push edi
push eax
call fcn.00404100
add esp, 0x14
test eax, eax
jne 0x40e579
lea ecx, [ebp - 0x14]
push ecx
push 0x463f90
lea edx, [ebp + 0xc]
push edx
call fcn.004350ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00434f1c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00434de3
jmp 0x40e68e
mov al, byte [edi + 0x16]
and al, 2
cmp al, 2
je 0x40e4cc
mov ecx, dword [0x46bb84]
mov edx, dword [ecx + 0x60]
push 0
push 0x46bdf4
push 0x80
push edi
push edx
call fcn.00404100
add esp, 0x14
test eax, eax
je 0x40e4cc
lea eax, [ebp - 0x14]
push eax
push 0x463f90
lea ecx, [ebp + 0xc]
push ecx
call fcn.004350ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00434f1c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00434de3
jmp 0x40e68e
mov cl, byte [eax + 8]
test cl, cl
jne 0x40e587
mov ecx, dword [eax + 0x10]
xor edx, edx
jmp 0x40e58d
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
push 1
push edx
push ecx
push 0
push 0
push eax
mov eax, dword [0x46bb84]
mov ecx, dword [eax + 0x60]
push ecx
call fcn.004037c0
add esp, 0x1c
test eax, eax
mov ebx, eax
jne 0x40e5dd
lea edx, [ebp - 0x14]
push edx
push 0x463f90
lea eax, [ebp + 0xc]
push eax
call fcn.004350ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00434f1c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00434de3
jmp 0x40e68e
mov ecx, dword [0x46bb84]
mov edx, dword [ecx + 0x60]
push 0
push 0
push 0x30
push edi
push edx
call fcn.00404100
add esp, 0x14
test eax, eax
jne 0x40e627
lea eax, [ebp - 0x14]
push eax
push 0x463f90
lea ecx, [ebp + 0xc]
push ecx
call fcn.004350ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00434f1c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00434de3
jmp 0x40e68e
mov cl, byte [eax + 8]
test cl, cl
jne 0x40e635
mov ecx, dword [eax + 0x10]
xor edx, edx
jmp 0x40e63b
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
push 1
push edx
mov edx, dword [0x46bb84]
push ecx
push 0
push 0
push eax
mov eax, dword [edx + 0x60]
push eax
call fcn.004037c0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x40e6fc
lea ecx, [ebp - 0x14]
push ecx
push 0x463f90
lea edx, [ebp - 0x18]
push edx
call fcn.004350ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00434f1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00434de3
mov esi, dword [ebp + 0xc]
cmp esi, 5
je 0x40e69b
mov edx, dword [ebp - 0x14]
cmp byte [edx], 0x3f
jne 0x40e6cb
mov ecx, dword [0x46bb84]
lea eax, [ebp - 0x14]
push eax
add ecx, 0x64
push ecx
lea edx, [ebp + 0xc]
push edx
call fcn.004350ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call fcn.00434f1c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00434de3
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00434b58
or dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00434de3
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, word [edi + 0x16]
mov cl, al
and cl, 2
cmp cl, 2
je 0x40e71c
mov edx, dword [esi + 0x38]
and edx, dword [ebx + 0x20]
test dl, 0x10
je 0x40e71c
or eax, 2
mov word [edi + 0x16], ax
mov al, byte [edi + 0x16]
and al, 2
cmp al, 2
je 0x40e750
lea ecx, [ebp - 0x14]
push ecx
push 0x463f90
lea edx, [ebp - 0x18]
push edx
call fcn.004350ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.00434f1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x40e686
mov eax, dword [esi]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [esi + 0x40]
lea edx, [esi + 0x42]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x124]
push ecx
push edx
push eax
call fcn.0041cb7a
mov edx, dword [0x46bb84]
xor ecx, ecx
mov cl, byte [esi + 0x40]
push 1
push 0
push 0x30
push edi
mov byte [ebp + ecx - 0x124], 0
mov eax, dword [edx + 0x60]
push eax
call fcn.00404100
add esp, 0x20
test eax, eax
je 0x40e803
mov cl, byte [eax + 8]
test cl, cl
jne 0x40e7a6
mov ecx, dword [eax + 0x10]
xor edx, edx
jmp 0x40e7ac
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
push 1
push edx
push ecx
mov ecx, dword [0x46bb84]
mov edx, dword [ecx + 0x60]
push 0
push 0
push eax
push edx
call fcn.004037c0
or ecx, 0xffffffff
mov esi, eax
xor edx, edx
mov dl, byte [esi + 0x40]
xor eax, eax
add esp, 0x1c
lea edi, [ebp - 0x124]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jbe 0x40e803
push edx
lea eax, [esi + 0x42]
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.0041cb7a
add esp, 0xc
xor edx, edx
mov dl, byte [esi + 0x40]
mov byte [ebp + edx - 0x124], 0
lea eax, [ebp - 0x14]
push eax
push 0x463f94
lea ecx, [ebp - 0x20]
push ecx
call fcn.004350ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00434f1c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00434de3
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004350ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.00434f1c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00434de3
jmp 0x40e3a5