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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402b80
push 0x45d024
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 [0x45f128]
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.00424a93
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 0x40ab70
push dword [ebp + 0xc]
mov ebx, 0x40aab0
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 0x4207ae
mov eax, 0x40ab6c
lea edi, [ebp - 0x230]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x420694
test cl, cl
je 0x420690
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x420694
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x420672
xor eax, eax
jmp 0x420699
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420793
mov eax, 0x40ab68
lea edi, [ebp - 0x230]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x4206ce
test cl, cl
je 0x4206ca
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4206ce
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x4206ac
xor eax, eax
jmp 0x4206d3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420793
test byte [ebp - 0x25c], 0x10
je 0x420793
test byte [ebp - 0x25c], 2
jne 0x420793
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.0045894e
add esp, 0x18
test eax, eax
je 0x420763
push 8
pop eax
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x374], eax
cmp dword [0x4736f4], 0
je 0x420776
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 0x420667
push dword [ebp - 0x37c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x40ab70
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 0x420a2c
mov eax, 0x40ab6c
lea edi, [ebp - 0x230]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x42082b
test cl, cl
je 0x420827
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x42082b
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x420809
xor eax, eax
jmp 0x420830
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4209f3
mov eax, 0x40ab68
lea edi, [ebp - 0x230]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x420865
test cl, cl
je 0x420861
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x420865
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x420843
xor eax, eax
jmp 0x42086a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4209f3
test byte [ebp - 0x25c], 0x12
jne 0x4209f3
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 0x4209f3
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.00426ac8
add esp, 0x18
test eax, eax
je 0x420950
push 3
pop eax
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x368], eax
jmp 0x420971
lea eax, [ebp - 0x230]
push eax
call fcn.00426a69
pop ecx
test eax, eax
je 0x4209f3
mov dword [ebp - 0x374], edi
mov dword [ebp - 0x368], edi
lea eax, [ebp - 0x11c]
push eax
call fcn.0045894e
pop ecx
test eax, eax
je 0x4209b7
lea eax, [ebp - 0x230]
push eax
call fcn.00426ac8
pop ecx
test eax, eax
je 0x420997
push 7
jmp 0x4209aa
lea eax, [ebp - 0x230]
push eax
call fcn.00426a69
pop ecx
test eax, eax
je 0x4209b7
push 9
pop eax
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x368], eax
cmp dword [0x4736f4], 0
je 0x4209ca
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 0x420a20
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x37c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4207fe
jmp 0x420a20
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