Function at 0x40dd50
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42ff90
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.004263b8
call fcn.0040dbd0
add esp, 4
cmp eax, edi
jne 0x40dfee
lea ecx, [esp + 0x24]
call fcn.00424cd3
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x48], 1
call fcn.004263b8
lea eax, [esp + 0x14]
push eax
call fcn.0040e1c0
add esp, 8
push 0x43c774
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.004266b1
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.0040f630
add esp, 0xc
lea edx, [esp + 0x24]
push edx
call fcn.0040f920
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.00426643
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.004263b8
call fcn.0040fdd0
mov eax, dword [esp + 0x38]
add esp, 0xc
xor esi, esi
cmp eax, edi
jle 0x40deb8
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.0040ebd0
add esp, 0x10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], bl
call fcn.00426730
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 5
call fcn.00426643
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.004263b8
call fcn.0040dbd0
add esp, 4
test eax, eax
jne 0x40deab
lea eax, [esp + 0x10]
push eax
call fcn.0040eaf0
add esp, 4
test eax, eax
je 0x40deb6
mov ebp, 1
inc edi
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x40de3f
jmp 0x40deb8
xor ebp, ebp
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40df4c
test ebp, ebp
je 0x40df4c
push 0x43c77c
lea ecx, [esp + 0x1c]
call fcn.004266b1
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.0040ebd0
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 9
call fcn.00426643
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 0x40df2c
xor ebp, ebp
jmp 0x40df3e
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.00426643
test edi, edi
jle 0x40df9e
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.004263b8
lea eax, [esp + 0x50]
push eax
call fcn.0040e0f0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], bl
call fcn.00426730
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], 5
call fcn.00426643
dec esi
jne 0x40df5a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
call fcn.00426643
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 1
call fcn.00426643
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 0
call fcn.00424d06
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call fcn.00426643
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 0x40e048
push 0x43c77c
lea ecx, [esp + 0x50]
call fcn.004266b1
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.0040ebd0
add esp, 0x10
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 0xc
call fcn.00426730
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call fcn.00426643
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x4c]
jmp 0x40e07e
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.004263b8
lea eax, [esp + 0x50]
push eax
call fcn.0040e9c0
add esp, 8
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 0xd
call fcn.00426730
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x4c]
call fcn.00426643
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 0x40e0af
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e0c6
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.00426643
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