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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5905c5
mov eax, dword fs:[0]
push eax
sub esp, 0x3e8
mov eax, dword [0x5fe480]
xor eax, esp
mov dword [esp + 0x3e0], eax
push ebx
push esi
push edi
mov eax, dword [0x5fe480]
xor eax, esp
push eax
lea eax, [esp + 0x3f8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x28], eax
mov eax, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x473ab3
sub eax, ecx
sar eax, 1
mov dword [esp + 0x2c], eax
cmp eax, 0x102
jbe 0x473b67
lea eax, [esp + 0x34]
push eax
call fcn.004044d0
mov edi, eax
and dword [esp + 0x400], 0
push str.GFE::DAOS::DAOSupportImplementation::ScanFiles:_cannot_scan_
push edi
call fcn.0040511f
push esi
push edi
call fcn.0040511f
push str._because_it_is_longer_than_MAX_PATH_with__appended
push edi
call fcn.0040511f
add esp, 0x18
lea eax, [esp + 0x164]
push eax
mov eax, edi
call fcn.0040453a
mov byte [esp + 0x400], 1
cmp dword [esp + 0x178], 8
mov eax, dword [esp + 0x164]
jae 0x473b34
lea eax, [esp + 0x164]
push eax
push 2
pop ecx
call fcn.00463ba1
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x168]
call fcn.00401d98
or dword [esp + 0x400], 0xffffffff
lea eax, [esp + 0x34]
call fcn.00403cb2
push 2
pop eax
jmp 0x473e82
lea eax, [esi + eax*2]
cmp word [eax - 2], 0x5c
mov dword [esp + 0x10], eax
sete al
movzx eax, al
push 0x155
push eax
mov edi, str.srcdaos.cpp
call fcn.004639d7
mov edx, dword [esp + 0x18]
pop ecx
mov eax, 0x5a7734
pop ecx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x473b96
mov eax, dword [esp + 0x1c]
push dword [eax + 0x30]
lea ecx, [esp + 0x1a0]
push 0
push 0
push ecx
push dword [eax + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x400], 2
mov word [ecx], ax
cmp edi, 0xffffffff
jne 0x473c84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [esp + 0x34]
push eax
call fcn.004044d0
mov edi, eax
push str.GFE::DAOS::DAOSupportImplementation::ScanFiles:_FindFirstFile_failed_with
push edi
mov byte [esp + 0x408], 3
call fcn.0040511f
pop ecx
pop ecx
push ebx
push edi
call fcn.00409937
push str._for
push edi
call fcn.0040511f
push esi
push edi
call fcn.0040511f
add esp, 0x10
lea eax, [esp + 0x164]
push eax
mov eax, edi
call fcn.0040453a
mov byte [esp + 0x400], 4
cmp dword [esp + 0x178], 8
mov eax, dword [esp + 0x164]
jae 0x473c5d
lea eax, [esp + 0x164]
push eax
push 2
pop ecx
call fcn.00463ba1
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x168]
call fcn.00401d98
mov byte [esp + 0x400], 2
jmp 0x473b56
mov eax, dword [esp + 0x28]
xor edx, edx
cmp eax, edx
je 0x473c9e
push edx
call fcn.00466ce7
test al, al
jne 0x473ea8
xor edx, edx
cmp word [esp + 0x1c8], dx
je 0x473e5e
cmp word [esp + 0x1c8], 0x2e
jne 0x473cde
cmp word [esp + 0x1ca], dx
je 0x473e5e
cmp word [esp + 0x1ca], 0x2e
jne 0x473cde
cmp word [esp + 0x1cc], dx
je 0x473e5e
test byte [esp + 0x19c], 0x10
je 0x473e3e
add dword [ebx + 8], 1
adc dword [ebx + 0xc], edx
cmp dword [ebp + 0xc], edx
je 0x473e5e
lea eax, [esp + 0x1c8]
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x473d06
mov ecx, dword [esp + 0x2c]
sub eax, edi
sar eax, 1
lea eax, [eax + ecx + 1]
cmp eax, 0x103
jbe 0x473dcc
lea eax, [esp + 0xcc]
push eax
call fcn.004044d0
mov edi, eax
push str.GFE::DAOS::DAOSupportImplementation::ScanFiles:_Cannot_scan_under_path_
push edi
mov byte [esp + 0x408], 5
call fcn.0040511f
push esi
push edi
call fcn.0040511f
lea eax, [esp + 0x1d8]
push eax
push edi
call fcn.0040511f
push str._as_it_is_longer_than_MAX_PATH.
push edi
call fcn.0040511f
add esp, 0x20
lea eax, [esp + 0x180]
push eax
mov eax, edi
call fcn.0040453a
mov byte [esp + 0x400], 6
cmp dword [esp + 0x194], 8
mov eax, dword [esp + 0x180]
jae 0x473d9c
lea eax, [esp + 0x180]
push eax
push 2
pop ecx
call fcn.00463ba1
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x184]
call fcn.00401d98
lea eax, [esp + 0xcc]
mov byte [esp + 0x400], 2
call fcn.00403cb2
jmp 0x473e34
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c8]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x473ddb
mov edi, dword [esp + 0x10]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x473df1
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x1c]
push ebx
push dword [esp + 0x2c]
dec eax
push dword [esp + 0x2c]
mov esi, 0x5a372c
push dword [esp + 0x2c]
movsd dword es:[edi], dword [esi]
push eax
push dword [esp + 0x2c]
call fcn.00473a4b
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov word [edx], cx
cmp eax, 1
je 0x473ec6
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x473e5e
push dword [esp + 0x24]
add dword [ebx], 1
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1cc]
adc dword [ebx + 4], edx
mov edx, dword [esp + 0x20]
push eax
push esi
call fcn.0047416f
lea eax, [esp + 0x19c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x473c84
test edi, edi
je 0x473e80
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [esp + 0x3f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.005413de
mov esp, ebp
pop ebp
ret 0x18
push str.GFE::DAOS::DAOSupportImplementation::ScanFiles:_cancel_event_set.
push 3
pop ecx
call fcn.00463ba1
pop ecx
test edi, edi
je 0x473ec1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x473e82
cmp dword [esp + 0x14], ecx
je 0x473ec1
push dword [esp + 0x14]
jmp 0x473ebb