Function at 0x40bd6f
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443dd4
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x458220]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x458220]
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.00403959
push 0x447f44
mov eax, esi
mov dword [esp + 0xbc], ebx
call fcn.0040c5cf
pop ecx
call fcn.0040d42d
movzx eax, ax
push eax
call fcn.00406cc5
lea eax, [esp + 0x5c]
call fcn.0040d873
lea esi, [esp + 0x20]
mov byte [esp + 0xb8], 1
call fcn.0040d7ab
push 0x448684
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0xc4], 2
call fcn.0040427c
add esp, 0xc
lea ecx, [esp + 0x5c]
mov edx, eax
push ecx
mov eax, esi
mov byte [esp + 0xbc], 3
call fcn.0040d7db
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 0x40bf80
lea esi, [esp + 0x5c]
call fcn.0040d932
test al, al
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jne 0x40bf6a
mov eax, esi
call fcn.0040d91f
test al, al
mov eax, esi
je 0x40bead
call fcn.0040d91b
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040c29c
add esp, 0xc
push eax
mov byte [esp + 0xbc], 4
call fcn.0040bd6f
pop ecx
mov byte [esp + 0xb8], 2
jmp 0x40bed7
call fcn.0040d91b
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040c29c
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x40bed0
mov eax, dword [eax + 4]
jmp 0x40bed3
add eax, 4
push eax
call edi
cdq
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jmp 0x40bf5e
lea esi, [esp + 0x5c]
call fcn.0040d932
test al, al
jne 0x40bf6a
mov eax, esi
call fcn.0040d91f
test al, al
mov eax, esi
je 0x40bf2c
call fcn.0040d91b
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040c29c
add esp, 0xc
push eax
mov byte [esp + 0xbc], 5
call fcn.0040bd6f
pop ecx
mov byte [esp + 0xb8], 2
jmp 0x40bf56
call fcn.0040d91b
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040c29c
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x40bf4f
mov eax, dword [eax + 4]
jmp 0x40bf52
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.0040d7e2
test al, al
jne 0x40bee1
lea eax, [esp + 0x20]
call fcn.0040d833
push 0x447f44
lea eax, [esp + 0x44]
call fcn.0040c5cf
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
pop ecx
jae 0x40bfa7
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40bfbb
add dword [esp + 0x14], 1
adc dword [esp + 0x18], ebx
lea edi, [esp + 0x20]
call fcn.0040d7c3
lea eax, [esp + 0x5c]
call fcn.0040d8a1
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.004363e5
mov esp, ebp
pop ebp
ret