Function at 0x409704
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc14
mov eax, ecx
lea ecx, [ebp - 0x18]
lea esi, [ebp - 0x2c0]
mov dword [ecx - 4], esp
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x456c80
mov edx, dword fs:[0]
mov dword [ecx], edx
mov dword fs:[0], ecx
mov ecx, esi
mov edx, dword [eax]
push dword [eax + 8]
call fcn.00456210
add esp, 4
mov esi, dword [esi]
cmp esi, 2
je 0x409b02
lea eax, [ebp - 0x2b4]
lea edi, [ebp - 0x764]
mov ecx, dword [eax - 8]
mov ebx, dword [eax - 4]
mov dword [ebp - 0x20], ecx
push 0x250
push eax
push edi
call fcn.00457f90
add esp, 0xc
xor eax, eax
mov dword [edi - 0x4bc], eax
mov dword [edi - 0x264], eax
mov eax, dword [ebp - 0x20]
mov dword [edi - 0xc], esi
lea esi, [ebp - 0x514]
mov dword [edi - 4], ebx
mov dword [edi - 8], eax
mov ecx, esi
lea edx, [ebp - 0xc20]
call section..text
cmp dword [ebp - 0x514], 0
je 0x409ad8
push 0x254
push esi
lea edi, [ebp - 0x2c0]
push edi
call fcn.00457f90
add esp, 0xc
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x58]
mov edx, edi
mov ebx, dword [eax + 8]
mov esi, dword [eax + 0x10]
call fcn.00443ba0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
test esi, esi
mov edi, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x64], ecx
je 0x409813
js 0x409b79
mov al, byte [0x4c0890]
xor edx, edx
mov ecx, esi
inc edx
call fcn.0040de10
mov edi, eax
test eax, eax
je 0x409b87
push esi
push ebx
push edi
call fcn.00457f90
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x30]
push dword [ebp - 0x64]
call fcn.00443ca0
add esp, 4
movsd xmm0, qword [ebp - 0x30]
movsd xmm1, qword [ebp - 0x28]
cmp dword [ebp - 0x54], 0
movsd qword [ebp - 0x40], xmm1
movsd qword [ebp - 0x48], xmm0
je 0x40986e
push dword [ebp - 0x20]
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x2bc]
lea edi, [ebp - 0x30]
bt edx, 0xa
setae al
test byte [ebp - 0x295], 0x20
sete cl
test dl, 0x10
je 0x4098b9
or al, cl
je 0x4098b9
mov ecx, edi
lea edx, [ebp - 0x2c0]
call fcn.00443ba0
cmp dword [ebp - 0x28], 4
jne 0x409937
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0x7469672e
sete bl
jmp 0x409939
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mov ecx, edi
mov dword [ebp - 0x20], eax
mov edx, esi
push dword [ebp - 0x40]
call fcn.0043d710
add esp, 4
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
test ecx, ecx
je 0x409a04
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x58]
mov edx, edi
push 1
call fcn.00443210
add esp, 4
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x54]
test edi, edi
je 0x409a12
push edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x409a2f
mov eax, ebx
mov bl, 4
test eax, eax
je 0x409a4d
push edi
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x409a4d
xor ebx, ebx
cmp dword [ebp - 0x2c], 0
je 0x409950
push dword [ebp - 0x30]
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
test bl, bl
je 0x40997a
cmp dword [ebp - 0x44], 0
lea esi, [ebp - 0x514]
je 0x409ab9
push dword [ebp - 0x48]
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x409ab9
lea ecx, [ebp - 0x48]
call fcn.00409704
test eax, eax
jne 0x409ae7
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mov ecx, edi
mov dword [ebp - 0x20], eax
mov edx, esi
push dword [ebp - 0x40]
call fcn.0043d710
add esp, 4
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
test ecx, ecx
je 0x409a21
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x58]
mov edx, edi
push 1
call fcn.00443210
add esp, 4
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x54]
test edi, edi
je 0x409a6c
push edi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x409a7b
mov eax, ebx
mov bl, 4
test eax, eax
je 0x409a99
push edi
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x409a99
mov ecx, ebx
mov dword [ebp - 0x38], eax
shrd ecx, eax, 8
mov dword [ebp - 0x60], ecx
jmp 0x409a4d
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
shld eax, ebx, 0x18
mov dword [ebp - 0x60], eax
jmp 0x409a4d
mov ecx, ebx
mov dword [ebp - 0x34], eax
shrd ecx, eax, 8
mov dword [ebp - 0x5c], ecx
jmp 0x409a99
call dword [sym.imp.kernel32.dll_GetLastError]
test ebx, ebx
mov dword [ebp - 0x38], eax
je 0x409a4b
push edi
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
xor ebx, ebx
cmp dword [ebp - 0x20], 0
je 0x409a62
push esi
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp bl, 4
je 0x409ab3
jmp 0x409b1d
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
shld eax, ebx, 0x18
mov dword [ebp - 0x5c], eax
jmp 0x409a99
call dword [sym.imp.kernel32.dll_GetLastError]
test ebx, ebx
mov dword [ebp - 0x34], eax
je 0x409a97
push edi
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
xor ebx, ebx
cmp dword [ebp - 0x20], 0
je 0x409aae
push esi
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp bl, 4
jne 0x409b25
lea esi, [ebp - 0x514]
mov eax, dword [ebp - 0x2c0]
lock dec dword [eax]
jne 0x40979a
mov ecx, dword [ebp - 0x2c0]
call fcn.00456bb9
jmp 0x40979a
lea ecx, [ebp - 0xc20]
call fcn.0040a4ad
xor esi, esi
jmp 0x409b63
cmp dword [ebp - 0x44], 0
mov esi, eax
je 0x409b42
push dword [ebp - 0x48]
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x409b42
movsd xmm0, qword [ebp - 0x2bc]
lea ecx, [ebp - 0xc20]
movsd qword [ecx], xmm0
call fcn.00466e96
mov esi, eax
jmp 0x409b63
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x38]
jmp 0x409b2b
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x34]
movzx eax, bl
shl ecx, 8
or eax, ecx
lea ecx, [ebp - 0x30]
mov dword [ecx + 4], edx
mov dword [ecx], eax
call fcn.00466e96
mov esi, eax
mov eax, dword [ebp - 0x2c0]
lock dec dword [eax]
jne 0x409b58
mov ecx, dword [ebp - 0x2c0]
call fcn.00456bb9
lea ecx, [ebp - 0xc20]
call fcn.0040a4ad
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0xc14
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
call fcn.0040de80
jmp 0x409b98
xor ecx, ecx
mov edx, esi
mov dword [ebp - 0x10], 0
inc ecx
call fcn.00465940
ud2