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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x412c98
xor eax, eax
cmp ax, word [esi]
je 0x412c98
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x412c98
lea edx, [esp + 0x568]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4127d0
lea eax, [esp + 0x568]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4127f0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x566], 0x5c
je 0x412828
lea edi, [esp + 0x568]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x412814
mov ecx, dword [0x43bc2c]
mov dword [edi], ecx
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x568]
mov word [esp + eax + 0x260], cx
add eax, 2
test cx, cx
jne 0x412830
lea eax, [esp + 0x260]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x412852
mov edx, dword [0x43bc30]
mov ecx, dword [0x43bc34]
mov dword [eax], edx
lea edx, [esp + 0x10]
mov dword [eax + 4], ecx
push edx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
test eax, eax
je 0x412c7e
cmp eax, 0xffffffff
je 0x412c7e
mov ebx, dword [ebp + 0xc]
lea ebx, [ebx]
xor eax, eax
jmp 0x4128b0
movzx ecx, word [esp + eax + 0x568]
mov word [esp + eax + 0x260], cx
add eax, 2
test cx, cx
jne 0x4128b0
lea eax, [esp + 0x3c]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4128d0
lea edi, [esp + 0x260]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4128f0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4128f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test al, 0x10
je 0x4129b9
test ebx, ebx
je 0x412c5b
lea ecx, [esp + 0x3c]
mov eax, 0x43bc38
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412956
test dx, dx
je 0x412952
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412956
add eax, 4
add ecx, 4
test dx, dx
jne 0x412930
xor eax, eax
jmp 0x41295b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x412c5b
lea ecx, [esp + 0x3c]
mov eax, 0x43bc3c
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412996
test dx, dx
je 0x412992
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412996
add eax, 4
add ecx, 4
test dx, dx
jne 0x412970
xor eax, eax
jmp 0x41299b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x412c5b
lea ecx, [esp + 0x260]
push ebx
push ecx
call fcn.00412780
add esp, 8
jmp 0x412c5b
test al, 0x40
jne 0x412c5b
test eax, 0x11600
jne 0x412c5b
lea edx, [esp + 0x3c]
push 0x2e
push edx
call fcn.0042141d
add esp, 8
test eax, eax
je 0x412c5b
mov esi, eax
mov edx, str..exe
lea ebx, [ebx]
mov di, word [edx]
cmp di, word [esi]
jne 0x412a16
test di, di
je 0x412a12
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x412a16
add edx, 4
add esi, 4
test di, di
jne 0x4129f0
xor edx, edx
jmp 0x412a1b
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x412c4f
mov esi, eax
mov edx, str..cpl
lea ebx, [ebx]
mov di, word [edx]
cmp di, word [esi]
jne 0x412a56
test di, di
je 0x412a52
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x412a56
add edx, 4
add esi, 4
test di, di
jne 0x412a30
xor edx, edx
jmp 0x412a5b
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x412c4f
mov esi, eax
mov edx, str..dll
lea ebx, [ebx]
mov di, word [edx]
cmp di, word [esi]
jne 0x412a96
test di, di
je 0x412a92
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x412a96
add edx, 4
add esi, 4
test di, di
jne 0x412a70
xor edx, edx
jmp 0x412a9b
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x412c4f
mov esi, eax
mov edx, str..inf
lea ebx, [ebx]
mov di, word [edx]
cmp di, word [esi]
jne 0x412ad6
test di, di
je 0x412ad2
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x412ad6
add edx, 4
add esi, 4
test di, di
jne 0x412ab0
xor edx, edx
jmp 0x412adb
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x412c4f
mov esi, eax
mov edx, str..adm
lea ebx, [ebx]
mov di, word [edx]
cmp di, word [esi]
jne 0x412b16
test di, di
je 0x412b12
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x412b16
add edx, 4
add esi, 4
test di, di
jne 0x412af0
xor edx, edx
jmp 0x412b1b
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x412c4f
mov esi, eax
mov edx, str..zip
lea ebx, [ebx]
mov di, word [edx]
cmp di, word [esi]
jne 0x412b56
test di, di
je 0x412b52
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x412b56
add edx, 4
add esi, 4
test di, di
jne 0x412b30
xor edx, edx
jmp 0x412b5b
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x412c4f
mov esi, eax
mov edx, str..mib
lea ebx, [ebx]
mov di, word [edx]
cmp di, word [esi]
jne 0x412b96
test di, di
je 0x412b92
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x412b96
add edx, 4
add esi, 4
test di, di
jne 0x412b70
xor edx, edx
jmp 0x412b9b
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x412c4f
mov esi, eax
mov edx, str..sln
lea ebx, [ebx]
mov di, word [edx]
cmp di, word [esi]
jne 0x412bd6
test di, di
je 0x412bd2
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x412bd6
add edx, 4
add esi, 4
test di, di
jne 0x412bb0
xor edx, edx
jmp 0x412bdb
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x412c4f
mov esi, eax
mov edx, str..lib
mov di, word [edx]
cmp di, word [esi]
jne 0x412c0c
test di, di
je 0x412c08
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x412c0c
add edx, 4
add esi, 4
test di, di
jne 0x412be6
xor edx, edx
jmp 0x412c11
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x412c4f
mov ecx, eax
mov eax, str..reg
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412c46
test dx, dx
je 0x412c42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412c46
add eax, 4
add ecx, 4
test dx, dx
jne 0x412c20
xor eax, eax
jmp 0x412c4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412c5b
lea ecx, [esp + 0x260]
call fcn.00412cc0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4128a0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x868]
xor ecx, esp
call fcn.0041f826
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x874]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x57
call fcn.0041f826
mov esp, ebp
pop ebp
ret