Function at 0x406e8c
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430746
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x38]
call fcn.0040d5e1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401fc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00401fc0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.004260d7
push 0x445008
lea ecx, [ebp - 0x18]
call fcn.0042632a
push 0
lea ecx, [ebp - 0x18]
call fcn.00408ae0
push eax
lea ecx, [ebp - 0x38]
call fcn.0040d6a4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4070f6
lea ecx, [ebp - 0x38]
call fcn.0040d8c4
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x38]
call fcn.0040d88b
test eax, eax
je 0x406f32
jmp 0x406f0f
lea ecx, [ebp - 0x38]
call fcn.00406320
test eax, eax
je 0x406f89
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040d993
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x14]
call fcn.00426087
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00425f4e
push 1
push 0
lea ecx, [ebp - 0x14]
call fcn.00408ae0
push eax
mov ecx, dword [ebp - 0x70]
call fcn.00406e8c
jmp 0x4070f1
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040d993
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00426087
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.00425f4e
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00425cc3
mov dword [ebp - 0x84], eax
call fcn.0040c606
add esp, 4
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4070f1
lea ecx, [ebp - 0x48]
call fcn.00401fc0
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
push 0x445010
lea ecx, [ebp - 0x40]
call fcn.00425fbc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.0042617d
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x90]
push edx
lea ecx, [ebp - 0x40]
call fcn.00426087
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x60]
call fcn.00425f4e
push 0
push 0x100
push 0x100
lea ecx, [ebp - 0x48]
call fcn.0042637e
push eax
push 0
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x48]
call fcn.004263cd
push 0x44501c
lea ecx, [ebp - 0x40]
call fcn.0042632a
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.0042617d
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x98]
push edx
lea ecx, [ebp - 0x40]
call fcn.00426087
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x64]
call fcn.00425f4e
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00425f4e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00425f4e
jmp 0x406f0f
lea ecx, [ebp - 0x38]
call fcn.0040d65a
cmp dword [ebp + 0xc], 0
je 0x40714c
cmp dword [ebp + 0x10], 0
jne 0x40714c
mov dword [ebp - 0x68], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00425f4e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00425f4e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00425f4e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040d61e
mov eax, dword [ebp - 0x68]
jmp 0x4071f1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4071b4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0
jmp 0x407185
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xa
jge 0x4071b4
cmp dword [ebp - 0x4c], 0
jne 0x4071b4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x4c], eax
jmp 0x40717c
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00425f4e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00425f4e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00425f4e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040d61e
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc