Function at 0x4071ed
Capabilities:
Delete file

Disassembly:
mov eax, 0x43dde4
call fcn.0041d644
sub esp, 0x14c
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], esi
call fcn.00413711
push edi
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], esi
call fcn.00410a28
push dword [edi + 0x1c]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00433116
push esi
push 0x455790
push 0x455210
push esi
push eax
call fcn.0041e267
mov edi, eax
add esp, 0x14
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], edi
call fcn.004139bb
mov eax, dword [eax]
xor ecx, ecx
cmp dword [eax - 8], esi
sete cl
mov eax, ecx
cmp eax, esi
je 0x407274
push 0xffffffffffffffff
push esi
push 0x409
call fcn.00438ec5
jmp 0x4079a7
mov eax, dword [0x457f44]
push ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x165c]
mov byte [ebp - 4], 2
cmp eax, esi
jne 0x407333
push str.PCDOS
lea ecx, [ebp - 0x3c]
call fcn.004361e7
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00408a10
mov ebx, eax
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
mov byte [ebp - 4], 3
call fcn.004089f2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
push ecx
push ebx
push eax
call fcn.00403a35
mov ebx, eax
add esp, 0xc
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x10]
inc bl
mov byte [ebp - 4], 3
call fcn.004360aa
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004360aa
test bl, bl
je 0x4073c1
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004089f2
push dword [eax]
mov byte [ebp - 4], 5
push 0x3f9
push 0x45b9a0
call fcn.00430c30
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004360aa
push esi
push esi
push dword [0x45b9a0]
call fcn.00438e8d
jmp 0x40799a
push str.MSDOS
lea ecx, [ebp - 0x3c]
call fcn.004361e7
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00408a10
mov ebx, eax
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
mov byte [ebp - 4], 6
call fcn.004089f2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
push ecx
push ebx
push eax
call fcn.00403a35
mov ebx, eax
add esp, 0xc
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x10]
inc bl
mov byte [ebp - 4], 6
call fcn.004360aa
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004360aa
test bl, bl
je 0x4073c1
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004089f2
push dword [eax]
mov byte [ebp - 4], 8
push 0x3f9
push 0x45b9a0
call fcn.00430c30
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
jmp 0x40731c
mov eax, dword [0x457f44]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
mov byte [ebp - 4], 0xa
call fcn.004089f2
push dword [eax]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push 0xc14
push eax
call fcn.00430c30
add esp, 0xc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.004360aa
push 0x4554ac
lea ecx, [ebp - 0x44]
call fcn.004139bb
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004362f3
push esi
push eax
lea eax, [ebp - 0x158]
mov ecx, edi
push eax
mov byte [ebp - 4], 0xc
call fcn.0040e070
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.004360aa
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004089f2
mov esi, eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xd
call fcn.004139bb
push dword [eax]
lea eax, [ebp - 0x24]
push dword [esi]
mov esi, str.__s____a_s___q__nolfn
push esi
push eax
call fcn.00430c1d
add esp, 0x10
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.004360aa
push 0x18
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 0xe
je 0x4074b1
push str.ghostexp.exe
lea ecx, [ebp - 0x18]
call fcn.00436118
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xf
call fcn.004139bf
jmp 0x4074b3
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0x10
call fcn.0040a108
test byte [ebp - 0x14], 1
mov dword [ebp - 4], 0xa
je 0x4074e2
and dword [ebp - 0x14], 0xfffffffe
lea ecx, [ebp - 0x18]
call fcn.004360aa
mov ebx, str.COMMAND.COM
lea ecx, [ebp - 0x50]
push ebx
call fcn.00436118
push str.IBMDOS.COM
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
call fcn.00436118
push str.IBMBIO.COM
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x12
call fcn.00436118
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x13
call fcn.00436118
push str.MSDOS.SYS
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x14
call fcn.00436118
push str.IO.SYS
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x15
call fcn.00436118
cmp dword [edi + 0x165c], 0
mov byte [ebp - 4], 0x16
jne 0x40772c
mov edi, 0x45b9b0
push str.common_
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.004362f3
push str.MOUSE.COM
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x17
push eax
call fcn.004362f3
mov ebx, eax
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0x18
call fcn.004089f2
push dword [ebx]
mov byte [ebp - 4], 0x19
push dword [eax]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00430c1d
add esp, 0x10
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x18
call fcn.004360aa
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x17
call fcn.004360aa
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x16
call fcn.004360aa
push 0x18
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 0x1a
je 0x407602
push str.ghostexp.exe
lea ecx, [ebp - 0x18]
call fcn.00436118
or dword [ebp - 0x14], 2
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x1b
call fcn.004139bf
jmp 0x407604
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0x1c
call fcn.0040a108
test byte [ebp - 0x14], 2
mov dword [ebp - 4], 0x16
je 0x407633
and dword [ebp - 0x14], 0xfffffffd
lea ecx, [ebp - 0x18]
call fcn.004360aa
lea eax, [ebp - 0x50]
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x18], eax
push str.commonpcdos_
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.004362f3
push dword [ebp - 0x18]
mov byte [ebp - 4], 0x1d
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0043628d
mov ebx, eax
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x1e
call fcn.004089f2
push dword [ebx]
mov byte [ebp - 4], 0x1f
push dword [eax]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00430c1d
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1e
call fcn.004360aa
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1d
call fcn.004360aa
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x16
call fcn.004360aa
push 0x18
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 0x20
je 0x4076e9
push str.ghostexp.exe
lea ecx, [ebp - 0x20]
call fcn.00436118
or dword [ebp - 0x14], 4
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0x21
call fcn.004139bf
jmp 0x4076eb
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0x22
call fcn.0040a108
test byte [ebp - 0x14], 4
mov dword [ebp - 4], 0x16
je 0x40771a
and dword [ebp - 0x14], 0xfffffffb
lea ecx, [ebp - 0x20]
call fcn.004360aa
add dword [ebp - 0x18], 4
dec dword [ebp - 0x10]
jne 0x407640
jmp 0x4078fd
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x18], eax
mov edi, 0x45b9b0
push str.commonmsdos_
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.004362f3
push dword [ebp - 0x18]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0043628d
mov ebx, eax
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0x24
call fcn.004089f2
push dword [ebx]
mov byte [ebp - 4], 0x25
push dword [eax]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00430c1d
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x24
call fcn.004360aa
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x23
call fcn.004360aa
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x16
call fcn.004360aa
push 0x18
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov byte [ebp - 4], 0x26
je 0x4077e7
push str.ghostexp.exe
lea ecx, [ebp - 0x10]
call fcn.00436118
or dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0x27
call fcn.004139bf
jmp 0x4077e9
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0x28
call fcn.0040a108
test byte [ebp - 0x14], 8
mov dword [ebp - 4], 0x16
je 0x407818
and dword [ebp - 0x14], 0xfffffff7
lea ecx, [ebp - 0x10]
call fcn.004360aa
add dword [ebp - 0x18], 4
dec dword [ebp - 0x20]
jne 0x40773e
push str.common_
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.004362f3
push str.MOUSE.COM
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x29
push eax
call fcn.004362f3
mov edi, eax
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0x2a
call fcn.004089f2
push dword [edi]
mov byte [ebp - 4], 0x2b
push dword [eax]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00430c1d
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x2a
call fcn.004360aa
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x29
call fcn.004360aa
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x16
call fcn.004360aa
push 0x18
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 0x2c
je 0x4078d0
push str.ghostexp.exe
lea ecx, [ebp - 0x10]
call fcn.00436118
or dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0x2d
call fcn.004139bf
jmp 0x4078d2
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0x2e
call fcn.0040a108
test byte [ebp - 0x14], 0x10
mov dword [ebp - 4], 0x16
je 0x4078fd
lea ecx, [ebp - 0x10]
call fcn.004360aa
lea ecx, [ebp - 0x158]
call fcn.004327ac
push 1
pop esi
cmp eax, esi
je 0x40793a
xor esi, esi
push esi
push esi
push dword [0x45b9a0]
call fcn.00438e8d
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push eax
call fcn.004089f2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1c]
call fcn.004360aa
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x15
call fcn.004360aa
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x14
call fcn.004360aa
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x13
call fcn.004360aa
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x12
call fcn.004360aa
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
call fcn.004360aa
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xa
call fcn.004360aa
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.004360aa
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004360aa
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004360aa
pop ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x158]
call fcn.00410ac6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00413840
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret