Function at 0x40c6c0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42aad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push ecx
lea eax, [esp + 0x4c]
xor edi, edi
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x48], edi
xor ebp, ebp
call fcn.00420ac2
call fcn.0040c540
add esp, 4
cmp eax, edi
jne 0x40c95e
lea ecx, [esp + 0x24]
call fcn.0041f3d9
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x48], 1
call fcn.00420ac2
lea eax, [esp + 0x14]
push eax
call fcn.0040cb30
add esp, 8
push 0x4376a8
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.00420dbb
lea ecx, [esp + 0x14]
lea eax, [esp + 0x10]
push ecx
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
lea ecx, [esp + 0x50]
push eax
push ecx
push edx
mov byte [esp + 0x54], 3
call fcn.0040dfa0
add esp, 0xc
lea edx, [esp + 0x24]
push edx
call fcn.0040e290
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.00420d4d
lea eax, [esp + 0x24]
push 0x5c
push eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00420ac2
call fcn.0040e740
mov eax, dword [esp + 0x38]
add esp, 0xc
xor esi, esi
cmp eax, edi
jle 0x40c828
mov bl, 6
mov eax, dword [esp + 0x28]
push 1
lea edx, [esp + 0x14]
lea ecx, [eax + esi*4]
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.0040d540
add esp, 0x10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], bl
call fcn.00420e3a
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 5
call fcn.00420d4d
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00420ac2
call fcn.0040c540
add esp, 4
test eax, eax
jne 0x40c81b
lea eax, [esp + 0x10]
push eax
call fcn.0040d460
add esp, 4
test eax, eax
je 0x40c826
mov ebp, 1
inc edi
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x40c7af
jmp 0x40c828
xor ebp, ebp
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40c8bc
test ebp, ebp
je 0x40c8bc
push 0x437784
lea ecx, [esp + 0x1c]
call fcn.00420dbb
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
mov byte [esp + 0x50], 7
call fcn.0040d540
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 9
call fcn.00420d4d
mov ecx, dword [esp + 0x4c]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40c89c
xor ebp, ebp
jmp 0x40c8ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], 5
call fcn.00420d4d
test edi, edi
jle 0x40c90e
mov esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov bl, 0xa
mov eax, dword [esp + 0x10]
push eax
call edi
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00420ac2
lea eax, [esp + 0x50]
push eax
call fcn.0040ca60
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], bl
call fcn.00420e3a
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], 5
call fcn.00420d4d
dec esi
jne 0x40c8ca
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
call fcn.00420d4d
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 1
call fcn.00420d4d
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 0
call fcn.0041f40c
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call fcn.00420d4d
mov eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
cmp dword [esp + 0x4c], edi
je 0x40c9b8
push 0x437784
lea ecx, [esp + 0x50]
call fcn.00420dbb
lea ecx, [esp + 0x4c]
push 1
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x24]
mov bl, 0xb
push edx
push eax
mov byte [esp + 0x50], bl
call fcn.0040d540
add esp, 0x10
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 0xc
call fcn.00420e3a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call fcn.00420d4d
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x4c]
jmp 0x40c9ee
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00420ac2
lea eax, [esp + 0x50]
push eax
call fcn.0040d330
add esp, 8
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 0xd
call fcn.00420e3a
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x4c]
call fcn.00420d4d
mov ecx, dword [esp + 0x48]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40ca1f
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40ca36
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call fcn.00420d4d
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret