Function at 0x42017e
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402bc8
push 0x45c1d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x574
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
or dword [ebp - 0x37c], 0xffffffff
mov al, byte [0x45e298]
mov byte [ebp - 0x11c], al
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x374], 5
mov byte [ebp - 0x36c], 4
and dword [ebp - 0x368], 0
mov byte [ebp - 0x36b], 0x10
push 0x409
call fcn.0042487e
pop ecx
mov dword [ebp - 0x364], eax
mov dword [ebp - 0x370], 0x2700
lea eax, [ebp - 0x374]
push eax
push 1
pop esi
push esi
push 0x414
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x378], esi
and dword [ebp - 4], 0
push 0x40aaf8
push dword [ebp + 0xc]
mov ebx, 0x40aa38
push ebx
push 0x104
lea eax, [ebp - 0x360]
push eax
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
call esi
add esp, 0x14
and byte [ebp - 0x25d], 0
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x37c], eax
cmp eax, 0xffffffff
je 0x4203bc
mov eax, 0x40aaf4
lea edi, [ebp - 0x230]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x4202a2
test cl, cl
je 0x42029e
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4202a2
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x420280
xor eax, eax
jmp 0x4202a7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4203a1
mov eax, 0x40aaf0
lea edi, [ebp - 0x230]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x4202dc
test cl, cl
je 0x4202d8
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4202dc
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x4202ba
xor eax, eax
jmp 0x4202e1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4203a1
test byte [ebp - 0x25c], 0x10
je 0x4203a1
test byte [ebp - 0x25c], 2
jne 0x4203a1
mov byte [ebp - 0x36b], 0x50
lea eax, [ebp - 0x230]
mov dword [ebp - 0x364], eax
mov eax, dword [ebp - 0x378]
add eax, 0x2700
mov dword [ebp - 0x370], eax
push 2
pop eax
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x374], eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0xc]
push ebx
push 0x103
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
call fcn.00457b3f
add esp, 0x18
test eax, eax
je 0x420371
push 8
pop eax
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x374], eax
cmp dword [0x472864], 0
je 0x420384
mov dword [ebp - 0x374], 0xfffffffe
lea eax, [ebp - 0x374]
push eax
push 1
push 0x414
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [ebp - 0x378]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x37c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x420275
push dword [ebp - 0x37c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x40aaf8
push dword [ebp + 0xc]
push ebx
push 0x104
lea eax, [ebp - 0x360]
push eax
call esi
add esp, 0x14
and byte [ebp - 0x25d], 0
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x37c], eax
cmp eax, 0xffffffff
je 0x42063a
mov eax, 0x40aaf4
lea edi, [ebp - 0x230]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x420439
test cl, cl
je 0x420435
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x420439
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x420417
xor eax, eax
jmp 0x42043e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420601
mov eax, 0x40aaf0
lea edi, [ebp - 0x230]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x420473
test cl, cl
je 0x42046f
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x420473
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x420451
xor eax, eax
jmp 0x420478
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420601
test byte [ebp - 0x25c], 0x12
jne 0x420601
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x480]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x230]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 4
pop edi
sub ecx, edi
push ecx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0xc]
push ebx
push 0x104
lea eax, [ebp - 0x584]
push eax
call esi
add esp, 0x14
and byte [ebp - 0x481], 0
lea eax, [ebp - 0x584]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
jne 0x420601
mov byte [ebp - 0x36b], 0x50
lea eax, [ebp - 0x480]
mov dword [ebp - 0x364], eax
mov eax, dword [ebp - 0x378]
add eax, 0x2700
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0xc]
push ebx
push 0x103
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [ebp - 0x230]
push eax
call fcn.004267c1
add esp, 0x18
test eax, eax
je 0x42055e
push 3
pop eax
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x368], eax
jmp 0x42057f
lea eax, [ebp - 0x230]
push eax
call fcn.00426762
pop ecx
test eax, eax
je 0x420601
mov dword [ebp - 0x374], edi
mov dword [ebp - 0x368], edi
lea eax, [ebp - 0x11c]
push eax
call fcn.00457b3f
pop ecx
test eax, eax
je 0x4205c5
lea eax, [ebp - 0x230]
push eax
call fcn.004267c1
pop ecx
test eax, eax
je 0x4205a5
push 7
jmp 0x4205b8
lea eax, [ebp - 0x230]
push eax
call fcn.00426762
pop ecx
test eax, eax
je 0x4205c5
push 9
pop eax
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x368], eax
cmp dword [0x472864], 0
je 0x4205d8
mov dword [ebp - 0x374], 0xfffffffe
lea eax, [ebp - 0x374]
push eax
push 1
push 0x414
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [ebp - 0x378]
cmp dword [ebp - 0x378], 0x100
jg 0x42062e
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x37c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42040c
jmp 0x42062e
push dword [ebp - 0x37c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
push 1
pop eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret