Function at 0x40ca57
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442a0d
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x457220]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x457220]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
lea esi, [esp + 0x40]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.00403705
push 0x447500
mov eax, esi
mov dword [esp + 0xbc], ebx
call fcn.0040bace
pop ecx
call fcn.0040c0dc
movzx eax, ax
push eax
call fcn.004069ee
lea eax, [esp + 0x5c]
call fcn.0040d1c0
lea esi, [esp + 0x20]
mov byte [esp + 0xb8], 1
call fcn.0040d0f8
push 0x447688
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0xc4], 2
call fcn.00403f87
add esp, 0xc
lea ecx, [esp + 0x5c]
mov edx, eax
push ecx
mov eax, esi
mov byte [esp + 0xbc], 3
call fcn.0040d128
push ebx
push 1
lea esi, [esp + 0x2c]
mov byte [esp + 0x27], al
mov byte [esp + 0xc0], 2
call fcn.0040115e
cmp byte [esp + 0x1f], bl
je 0x40cc68
lea esi, [esp + 0x5c]
call fcn.0040d282
test al, al
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jne 0x40cc52
mov eax, esi
call fcn.0040d26f
test al, al
mov eax, esi
je 0x40cb95
call fcn.0040d26b
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040c36a
add esp, 0xc
push eax
mov byte [esp + 0xbc], 4
call fcn.0040ca57
pop ecx
mov byte [esp + 0xb8], 2
jmp 0x40cbbf
call fcn.0040d26b
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040c36a
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x40cbb8
mov eax, dword [eax + 4]
jmp 0x40cbbb
add eax, 4
push eax
call edi
cdq
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jmp 0x40cc46
lea esi, [esp + 0x5c]
call fcn.0040d282
test al, al
jne 0x40cc52
mov eax, esi
call fcn.0040d26f
test al, al
mov eax, esi
je 0x40cc14
call fcn.0040d26b
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040c36a
add esp, 0xc
push eax
mov byte [esp + 0xbc], 5
call fcn.0040ca57
pop ecx
mov byte [esp + 0xb8], 2
jmp 0x40cc3e
call fcn.0040d26b
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040c36a
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x40cc37
mov eax, dword [eax + 4]
jmp 0x40cc3a
add eax, 4
push eax
call edi
cdq
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
push ebx
push 1
lea esi, [esp + 0x2c]
call fcn.0040115e
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x60]
call fcn.0040d12f
test al, al
jne 0x40cbc9
lea eax, [esp + 0x20]
call fcn.0040d180
push 0x447500
lea eax, [esp + 0x44]
call fcn.0040bace
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
pop ecx
jae 0x40cc8f
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40cca3
add dword [esp + 0x14], 1
adc dword [esp + 0x18], ebx
lea edi, [esp + 0x20]
call fcn.0040d110
lea eax, [esp + 0x5c]
call fcn.0040d1ee
push ebx
push 1
lea esi, [esp + 0x48]
call fcn.0040115e
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004350b5
mov esp, ebp
pop ebp
ret