Function at 0x41d590
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x41d841
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41d841
push esi
lea ecx, [ebp - 0x414]
mov esi, eax
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x41d5ee
movzx eax, word [esi + ecx]
test ax, ax
je 0x41d5ee
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x41d5d0
jmp 0x41d5f2
test edx, edx
jne 0x41d5f5
sub ecx, 2
xor eax, eax
push 0x5b0b48
mov word [ecx], ax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0041bb30
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
jne 0x41d641
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41d80c
mov ebx, dword [ebp + 0x10]
jmp 0x41d660
mov esi, dword [ebp - 0x664]
and esi, 0x10
je 0x41d6a9
mov ecx, 0x5b0b50
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d69c
test dx, dx
je 0x41d698
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d69c
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d676
xor eax, eax
jmp 0x41d6a1
sbb eax, eax
or eax, 1
test eax, eax
je 0x41d7f1
mov ecx, 0x5b0b54
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d6da
test dx, dx
je 0x41d6d6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d6da
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d6b4
xor eax, eax
jmp 0x41d6df
sbb eax, eax
or eax, 1
test eax, eax
je 0x41d7f1
lea ecx, [ebp - 0x20c]
test esi, esi
mov esi, dword [ebp + 0xc]
mov edx, 0x104
mov eax, ecx
je 0x41d782
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x41d71f
movzx eax, word [esi + ecx]
test ax, ax
je 0x41d71f
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x41d701
jmp 0x41d723
test edx, edx
jne 0x41d726
sub ecx, 2
xor eax, eax
push 0x5b0b5c
mov word [ecx], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041bb30
lea eax, [ebp - 0x638]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0041bb30
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0041c640
add esp, 0xc
test eax, eax
je 0x41d82e
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0041d590
jmp 0x41d7ea
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x41d7a2
movzx eax, word [esi + ecx]
test ax, ax
je 0x41d7a2
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x41d784
jmp 0x41d7a6
test edx, edx
jne 0x41d7a9
sub ecx, 2
xor eax, eax
push 0x5b0b5c
mov word [ecx], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041bb30
lea eax, [ebp - 0x638]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0041bb30
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0041c640
add esp, 0xc
test eax, eax
je 0x41d82e
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41d660
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.005802ce
mov esp, ebp
pop ebp
ret