Function at 0x409390
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438acb
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x44cc80]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x498], eax
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x490], edi
xor esi, esi
push esi
push str.COperateFile::DeleteDirectory
lea ecx, [ebp - 0x4a0]
push ecx
call fcn.00405b00
add esp, 0xc
mov dword [ebp - 4], esi
mov dword [ebp - 0x47c], 0x800000
mov dword [ebp - 0x478], esi
mov byte [ebp - 4], 1
test ebx, ebx
je 0x4095ae
test edi, edi
je 0x4095ae
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4095a5
mov word [ebp - 0x224], 0
push 0x206
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.004250c0
add esp, 0xc
mov edx, ebx
mov dword [ebp - 0x48c], edx
mov esi, 0x104
mov dword [ebp - 0x494], esi
lea eax, [ebp - 0x224]
mov dword [ebp - 0x480], eax
test esi, esi
je 0x40948c
movzx ecx, word [edx]
test cx, cx
je 0x409495
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x480], eax
add edx, 2
mov dword [ebp - 0x48c], edx
sub esi, 1
mov dword [ebp - 0x494], esi
jmp 0x409460
sub eax, 2
mov dword [ebp - 0x480], eax
mov word [eax], 0
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x43f99c
mov edx, 0x104
lea edi, [ebp - 0x224]
call fcn.00404410
lea ecx, [ebp - 0x474]
push ecx
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x478], esi
cmp esi, 0xffffffff
je 0x40958a
mov edi, 1
push 0x43f9c0
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x409512
push 0x43f9c4
lea ecx, [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x409512
xor edi, edi
jmp 0x409524
lea edx, [ebp - 0x474]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4094e2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
mov dword [ebp - 0x478], esi
test edi, edi
je 0x4095a5
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40958a
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40958a
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40958a
push ebx
push 0x8080000e
mov eax, dword [ebp - 0x498]
mov ecx, dword [eax]
push ecx
call fcn.00409990
add esp, 0xc
mov dword [ebp - 0x484], 0x8080ffff
push 0x44729c
lea edx, [ebp - 0x484]
push edx
call fcn.00426b1b
push 0x5c
push ebx
call fcn.0042338a
mov word [eax], 0
add esp, 8
mov edi, dword [ebp - 0x490]
jmp 0x409412
mov dword [ebp - 4], 0
jmp 0x409601
mov dword [ebp - 0x488], 0x8080ffff
push 0x44729c
lea eax, [ebp - 0x488]
push eax
call fcn.00426b1b
mov ecx, dword [ebp - 0x4a4]
mov edx, dword [ecx]
mov dword [ebp - 0x47c], edx
mov dword [ebp - 4], 0
mov eax, 0x4095fb
ret
test esi, esi
je 0x40960c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x47c]
push esi
push str.return_DWORD__d__n
push 2
lea eax, [ebp - 0x4a0]
push eax
call fcn.00404dc0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a0]
call fcn.00405a70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004237ad
mov esp, ebp
pop ebp
ret 4