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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402b80
push 0x45db24
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 [0x45fc38]
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.00424eff
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 0x40aad4
push dword [ebp + 0xc]
mov ebx, 0x40aa14
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 0x420c07
mov eax, 0x40aad0
lea edi, [ebp - 0x230]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x420aed
test cl, cl
je 0x420ae9
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x420aed
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x420acb
xor eax, eax
jmp 0x420af2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420bec
mov eax, 0x40aacc
lea edi, [ebp - 0x230]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x420b27
test cl, cl
je 0x420b23
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x420b27
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x420b05
xor eax, eax
jmp 0x420b2c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420bec
test byte [ebp - 0x25c], 0x10
je 0x420bec
test byte [ebp - 0x25c], 2
jne 0x420bec
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.004593cf
add esp, 0x18
test eax, eax
je 0x420bbc
push 8
pop eax
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x374], eax
cmp dword [0x475394], 0
je 0x420bcf
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 0x420ac0
push dword [ebp - 0x37c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x40aad4
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 0x420e85
mov eax, 0x40aad0
lea edi, [ebp - 0x230]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x420c84
test cl, cl
je 0x420c80
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x420c84
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x420c62
xor eax, eax
jmp 0x420c89
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420e4c
mov eax, 0x40aacc
lea edi, [ebp - 0x230]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x420cbe
test cl, cl
je 0x420cba
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x420cbe
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x420c9c
xor eax, eax
jmp 0x420cc3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420e4c
test byte [ebp - 0x25c], 0x12
jne 0x420e4c
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 0x420e4c
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.00426f34
add esp, 0x18
test eax, eax
je 0x420da9
push 3
pop eax
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x368], eax
jmp 0x420dca
lea eax, [ebp - 0x230]
push eax
call fcn.00426ed5
pop ecx
test eax, eax
je 0x420e4c
mov dword [ebp - 0x374], edi
mov dword [ebp - 0x368], edi
lea eax, [ebp - 0x11c]
push eax
call fcn.004593cf
pop ecx
test eax, eax
je 0x420e10
lea eax, [ebp - 0x230]
push eax
call fcn.00426f34
pop ecx
test eax, eax
je 0x420df0
push 7
jmp 0x420e03
lea eax, [ebp - 0x230]
push eax
call fcn.00426ed5
pop ecx
test eax, eax
je 0x420e10
push 9
pop eax
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x368], eax
cmp dword [0x475394], 0
je 0x420e23
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 0x420e79
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x37c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x420c57
jmp 0x420e79
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