Function at 0x409d00
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e90
call fcn.00430be0
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
lea esi, [ebp - 0x224]
mov edi, edx
mov dword [ebp - 0x1e84], ebx
mov dword [ebp - 0x1e80], edi
sub esi, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x409d32
lea eax, [ebp - 0x224]
push 0x2a
push eax
call fcn.0041de51
add esp, 8
test eax, eax
jne 0x409dd9
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409dd9
test al, 0x10
je 0x409dd9
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d80
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x226], 0x5c
je 0x409db6
lea edi, [ebp - 0x224]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x409da3
mov eax, dword [0x437300]
mov dword [edi], eax
lea edi, [ebp - 0x224]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x409dc0
mov eax, dword [0x437378]
mov dword [edi], eax
mov edi, dword [ebp - 0x1e80]
mov ecx, 0x437378
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409e0a
test dx, dx
je 0x409e06
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409e0a
add eax, 4
add ecx, 4
test dx, dx
jne 0x409de4
xor eax, eax
jmp 0x409e0f
sbb eax, eax
or eax, 1
test eax, eax
je 0x409e85
mov ecx, 0x43741c
lea eax, [ebp - 0x224]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409e46
test dx, dx
je 0x409e42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409e46
add eax, 4
add ecx, 4
test dx, dx
jne 0x409e20
xor eax, eax
jmp 0x409e4b
sbb eax, eax
or eax, 1
test eax, eax
je 0x409e85
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409e60
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x228], 0x5c
jne 0x409ecc
cmp word [ebp + ecx*2 - 0x226], 0x2a
jne 0x409ecc
test dword [edi], 0x218
jne 0x409ecc
lea eax, [ebp - 0x224]
push eax
push str.Delete__s_
push 0x44a060
call fcn.0041cbe0
add esp, 0xc
mov ecx, 0x279
call fcn.004125b0
test eax, eax
je 0x409fe6
cmp eax, 3
je 0x409fe6
cmp eax, 2
jne 0x409ecc
or dword [edi], 0x200
lea eax, [ebp - 0x1e88]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x1e7c]
push eax
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x1e80], esi
cmp esi, 0xffffffff
je 0x40a19a
mov ebx, dword [ebp + 8]
mov edx, 1
nop dword [eax]
mov ecx, dword [ebp - 0x1e7c]
xor eax, eax
test byte [edi], 1
je 0x409f8f
test bl, 1
je 0x409f38
test cl, 0x20
cmove eax, edx
test bl, 2
je 0x409f43
test cl, 2
cmove eax, edx
test bl, 4
je 0x409f4e
test cl, 4
cmove eax, edx
test bl, 8
je 0x409f59
test cl, 1
cmove eax, edx
test bl, 0x10
je 0x409f64
test cl, 0x20
cmovne eax, edx
test bl, 0x20
je 0x409f6f
test cl, 2
cmovne eax, edx
test bl, 0x40
je 0x409f7a
test cl, 4
cmovne eax, edx
test bl, bl
jns 0x409f87
test cl, 1
jne 0x40a15f
test eax, eax
jne 0x40a15f
test cl, 0x10
jne 0x40a15f
mov edx, dword [ebp - 0x1e88]
lea ecx, [ebp - 0x1e50]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x409fa4
lea ecx, [ebp - 0x42c]
mov eax, 0x441680
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409ffc
test dx, dx
je 0x409fe2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409ffc
add eax, 4
add ecx, 4
test dx, dx
jne 0x409fc0
xor eax, eax
jmp 0x40a001
mov eax, 0x80000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a15f
mov edx, dword [edi]
test dl, 8
je 0x40a0e1
lea eax, [ebp - 0x42c]
push eax
push 0x148
push 0x44a020
call fcn.0041cd80
add esp, 0xc
push 0x149
push 0x44a060
call fcn.0041cd80
add esp, 8
lea ecx, [ebp - 0x1c]
mov edx, 0xa
call fcn.00407900
push 1
lea eax, [ebp - 0x1e8c]
mov dword [ebp - 0x1e8c], 0xa
push eax
push 0x44a060
call fcn.0041c900
lea eax, [ebp - 0x1c]
push eax
call fcn.00422bac
add esp, 4
lea esi, [ebp - 0x1c]
push 8
push dword [ebp - 0x1c]
call fcn.0041f340
add esp, 8
test eax, eax
je 0x40a0a6
nop dword [eax]
movzx eax, word [esi + 2]
add esi, 2
push 8
push eax
call fcn.0041f340
add esp, 8
test eax, eax
jne 0x40a090
push 0xc00
lea eax, [ebp - 0x1c2c]
push eax
push 0xc8
push dword [0x44a408]
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
lea eax, [ebp - 0x1c2c]
push eax
push esi
call fcn.0041f3ea
add esp, 0xc
test eax, eax
jne 0x40a127
mov edx, dword [edi]
mov esi, dword [ebp - 0x1e80]
test dl, 0x50
jne 0x40a101
lea eax, [ebp - 0x42c]
push eax
push 0x14a
push 0x44a020
call fcn.0041cd80
mov edx, dword [edi]
add esp, 0xc
test dl, 4
jne 0x40a15f
lea eax, [ebp - 0x1e7c]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00409af0
add esp, 4
test eax, eax
je 0x40a14b
inc dword [ebp - 0x1e84]
jmp 0x40a15f
push 1
lea eax, [ebp - 0x1c2a]
push eax
push esi
call fcn.0041f3ea
mov esi, dword [ebp - 0x1e80]
add esp, 0xc
mov dword [0x43bbd4], 0
jmp 0x40a15f
push 0x436be8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d540
add esp, 8
lea eax, [ebp - 0x1e7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edx, 1
test eax, eax
jne 0x409f20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x1e84]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push 0xc00
lea eax, [ebp - 0x1c2c]
push eax
push 0x68
push dword [0x44a408]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x1c2c]
push eax
push str._s____s_n
push 0x44a020
call fcn.0041cbe0
mov ecx, dword [ebp - 8]
add esp, 0x10
mov eax, ebx
mov dword [0x43bbd4], 1
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041d22b
mov esp, ebp
pop ebp
ret