Function at 0x403970
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a7a9
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004037d0
add esp, 4
test eax, eax
jne 0x4039b9
xor eax, eax
jmp 0x404361
lea ecx, [ebp - 0x6c]
push ecx
call fcn.00426600
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0
push 2
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00404880
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 1
push 0x456050
mov edx, dword [ebp - 0x44]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 3
push 0x456044
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.004028f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403a68
mov dword [ebp - 0x28], 1
jmp 0x403a6f
mov dword [ebp - 0x28], 0
mov dl, byte [ebp - 0x28]
mov byte [ebp - 0x1d], dl
lea ecx, [ebp - 0x5c]
call fcn.004028b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.004028b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.004028b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004028b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004028b0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x403dad
lea ecx, [ebp - 0x98]
push ecx
call fcn.00426600
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov dword [ebp - 4], 4
push 2
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x74]
call fcn.00404880
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 5
push 0x456064
mov edx, dword [ebp - 0x7c]
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x8c]
push ecx
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
call fcn.004028f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403b61
mov dword [ebp - 0x2c], 1
jmp 0x403b68
mov dword [ebp - 0x2c], 0
mov dl, byte [ebp - 0x2c]
mov byte [ebp - 0x1e], dl
lea ecx, [ebp - 0x8c]
call fcn.004028b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x90]
call fcn.004028b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.004028b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.004028b0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x403d97
lea ecx, [ebp - 0xc4]
push ecx
call fcn.00426600
add esp, 4
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], edx
mov dword [ebp - 4], 7
push 2
lea eax, [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0xa0]
call fcn.00404880
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], ecx
mov byte [ebp - 4], 8
push 0x456078
mov edx, dword [ebp - 0xa8]
push edx
lea eax, [ebp - 0xbc]
push eax
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
call fcn.004028f0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0xb8]
call fcn.004028b0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xbc]
call fcn.004028b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc0]
call fcn.004028b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.004028b0
nop
lea edx, [ebp - 0xf0]
push edx
call fcn.00426600
add esp, 4
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 4], 0xa
push 2
lea ecx, [ebp - 0xec]
push ecx
mov ecx, dword [ebp - 0xcc]
call fcn.00404880
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], edx
mov byte [ebp - 4], 0xb
push 0x45608c
mov eax, dword [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xe8]
push ecx
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xdc]
push ecx
lea edx, [ebp - 0xe4]
push edx
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
call fcn.004028f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xe4]
call fcn.004028b0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xe8]
call fcn.004028b0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xec]
call fcn.004028b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004028b0
nop
mov eax, dword [ebp + 8]
push eax
call fcn.00403370
add esp, 4
mov eax, 1
jmp 0x404361
push 4
lea ecx, [ebp - 0x18]
call fcn.00402190
lea ecx, [ebp - 0x18]
call fcn.004028d0
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x108]
push ecx
call fcn.00426600
add esp, 4
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], edx
mov byte [ebp - 4], 0xe
push 2
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0xf8]
call fcn.00404880
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x100], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x100]
call fcn.004028f0
push eax
push 0x4560a0
lea eax, [ebp - 0x18]
push eax
call fcn.00402d60
add esp, 0x10
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x104]
call fcn.004028b0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x108]
call fcn.004028b0
nop
push 4
lea ecx, [ebp - 0x14]
call fcn.00402190
lea ecx, [ebp - 0x14]
call fcn.004028d0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x114]
push ecx
call fcn.00426390
add esp, 4
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], edx
mov byte [ebp - 4], 0x11
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x110]
call fcn.004028f0
push eax
push str.__s_sandbox_start.exe___silent__box:_s__unmount
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402d60
add esp, 0x10
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x114]
call fcn.004028b0
nop
mov dword [ebp - 0x24], 0
jmp 0x403ed3
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0x14
jge 0x404336
lea eax, [ebp - 0x120]
push eax
call fcn.00426390
add esp, 4
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 0x12
push 0
push 1
push 0
mov ecx, dword [ebp - 0x11c]
call fcn.00404900
push eax
lea ecx, [ebp - 0x14]
call fcn.00404900
push eax
call fcn.00425f20
add esp, 0x14
test eax, eax
jne 0x403f32
mov dword [ebp - 0x30], 1
jmp 0x403f39
mov dword [ebp - 0x30], 0
mov dl, byte [ebp - 0x30]
mov byte [ebp - 0x1f], dl
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x120]
call fcn.004028b0
movzx eax, byte [ebp - 0x1f]
test eax, eax
je 0x403f86
mov dword [ebp - 0x124], 0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14]
call fcn.004028b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004028b0
mov eax, dword [ebp - 0x124]
jmp 0x404361
lea ecx, [ebp - 0x18]
call fcn.004028f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea ecx, [ebp - 0x18c]
push ecx
call fcn.00426600
add esp, 4
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
push 2
lea ecx, [ebp - 0x188]
push ecx
mov ecx, dword [ebp - 0x12c]
call fcn.00404880
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], 0x14
mov eax, dword [ebp - 0x1c]
or eax, 2
mov dword [ebp - 0x1c], eax
push 0x456128
mov ecx, dword [ebp - 0x134]
push ecx
lea edx, [ebp - 0x184]
push edx
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp - 0x1c]
or ecx, 4
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x180]
push ecx
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0x140], eax
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x144], edx
mov dword [ebp - 4], 0x16
mov eax, dword [ebp - 0x1c]
or eax, 8
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x144]
call fcn.004028f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4041bc
lea ecx, [ebp - 0x17c]
push ecx
call fcn.00426600
add esp, 4
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], edx
mov dword [ebp - 4], 0x17
mov eax, dword [ebp - 0x1c]
or eax, 0x10
mov dword [ebp - 0x1c], eax
push 2
lea ecx, [ebp - 0x178]
push ecx
mov ecx, dword [ebp - 0x14c]
call fcn.00404880
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x154], edx
mov dword [ebp - 4], 0x18
mov eax, dword [ebp - 0x1c]
or eax, 0x20
mov dword [ebp - 0x1c], eax
push 0x456148
mov ecx, dword [ebp - 0x154]
push ecx
lea edx, [ebp - 0x174]
push edx
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 4], 0x19
mov ecx, dword [ebp - 0x1c]
or ecx, 0x40
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x170]
push ecx
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0x160], eax
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x164], edx
mov dword [ebp - 4], 0x1a
mov eax, dword [ebp - 0x1c]
or eax, 0x80
mov dword [ebp - 0x1c], eax
push str..box
mov ecx, dword [ebp - 0x164]
push ecx
lea edx, [ebp - 0x16c]
push edx
call fcn.004047d0
add esp, 0xc
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x1c]
or eax, 0x100
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x168]
call fcn.004028f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4041bc
mov dword [ebp - 0x34], 1
jmp 0x4041c3
mov dword [ebp - 0x34], 0
mov cl, byte [ebp - 0x34]
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x1c]
and edx, 0x100
je 0x4041e7
and dword [ebp - 0x1c], 0xfffffeff
lea ecx, [ebp - 0x16c]
call fcn.004028b0
nop
mov dword [ebp - 4], 0x19
mov eax, dword [ebp - 0x1c]
and eax, 0x80
je 0x40420b
and dword [ebp - 0x1c], 0xffffff7f
lea ecx, [ebp - 0x170]
call fcn.004028b0
nop
mov dword [ebp - 4], 0x18
mov ecx, dword [ebp - 0x1c]
and ecx, 0x40
je 0x40422a
and dword [ebp - 0x1c], 0xffffffbf
lea ecx, [ebp - 0x174]
call fcn.004028b0
nop
mov dword [ebp - 4], 0x17
mov edx, dword [ebp - 0x1c]
and edx, 0x20
je 0x404249
and dword [ebp - 0x1c], 0xffffffdf
lea ecx, [ebp - 0x178]
call fcn.004028b0
nop
mov dword [ebp - 4], 0x16
mov eax, dword [ebp - 0x1c]
and eax, 0x10
je 0x404268
and dword [ebp - 0x1c], 0xffffffef
lea ecx, [ebp - 0x17c]
call fcn.004028b0
nop
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp - 0x1c]
and ecx, 8
je 0x404287
and dword [ebp - 0x1c], 0xfffffff7
lea ecx, [ebp - 0x180]
call fcn.004028b0
nop
mov dword [ebp - 4], 0x14
mov edx, dword [ebp - 0x1c]
and edx, 4
je 0x4042a6
and dword [ebp - 0x1c], 0xfffffffb
lea ecx, [ebp - 0x184]
call fcn.004028b0
nop
mov dword [ebp - 4], 0x13
mov eax, dword [ebp - 0x1c]
and eax, 2
je 0x4042c5
and dword [ebp - 0x1c], 0xfffffffd
lea ecx, [ebp - 0x188]
call fcn.004028b0
nop
mov dword [ebp - 4], 0x10
mov ecx, dword [ebp - 0x1c]
and ecx, 1
je 0x4042e4
and dword [ebp - 0x1c], 0xfffffffe
lea ecx, [ebp - 0x18c]
call fcn.004028b0
nop
movzx edx, byte [ebp - 0x20]
test edx, edx
je 0x404325
mov eax, dword [ebp + 8]
push eax
call fcn.00403370
add esp, 4
mov dword [ebp - 0x190], 1
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14]
call fcn.004028b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004028b0
mov eax, dword [ebp - 0x190]
jmp 0x404361
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x403eca
mov dword [ebp - 0x194], 0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14]
call fcn.004028b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004028b0
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429858
mov esp, ebp
pop ebp
ret