Function at 0x408800
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4153a0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x420534]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
je 0x408afb
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.0040dde0
mov esi, dword [ebp - 0x50]
add esp, 8
mov eax, dword [ebp - 0x4c]
mov edx, 0x7ffffffe
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x408970
nop dword [eax]
cmp dword [edi + 0x14], 8
mov ecx, edi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
jb 0x4088a4
mov ecx, dword [edi]
mov dword [ebp - 0x2c], ecx
cmp eax, 8
jae 0x4088b9
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x4088f6
mov esi, eax
lea ecx, [ebp - 0x28]
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, edx
lea eax, [esi + 1]
push eax
call fcn.00404990
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.004124c0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 1
jb 0x408907
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040af00
lea eax, [ebp - 0x28]
push eax
call fcn.00408800
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40895b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408951
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b16
push edx
push ecx
call fcn.00411118
add esp, 8
add esi, 0x18
mov dword [ebp - 0x34], esi
cmp esi, dword [ebp - 0x38]
je 0x408970
mov edx, 0x7ffffffe
jmp 0x408880
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.0040dd10
mov esi, dword [ebp - 0x44]
add esp, 8
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x408ac0
nop word [eax + eax]
cmp dword [edi + 0x14], 8
mov ecx, edi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
jb 0x4089d4
mov ecx, dword [edi]
mov dword [ebp - 0x34], ecx
cmp eax, 8
jae 0x4089e9
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x408a2b
mov esi, eax
lea ecx, [ebp - 0x28]
or esi, 7
mov eax, 0x7ffffffe
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00404990
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x34]
push eax
call fcn.004124c0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 3
jb 0x408a3c
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040af00
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__wremove
add esp, 0xc
test eax, eax
jne 0x408a77
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.Failed_to_remove_temporary_file___s_.
call fcn.0040ab30
add esp, 8
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x408ab1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408aa7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b16
push edx
push ecx
call fcn.00411118
add esp, 8
add esi, 0x18
mov dword [ebp - 0x2c], esi
cmp esi, dword [ebp - 0x38]
jne 0x4089b0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x408aca
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x408aeb
cmp dword [edi + 0x14], 8
jb 0x408add
mov edi, dword [edi]
push edi
push str.Failed_to_remove_temporary_directory___s_.
call fcn.0040ab30
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.004078f0
lea ecx, [ebp - 0x50]
call fcn.004078f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411126
mov esp, ebp
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3