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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b0692
mov eax, dword fs:[0]
push eax
sub esp, 0x3e8
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0x3e0], eax
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
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 + 0x18], ecx
mov dword [esp + 0x14], esi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4882fb
sub eax, ecx
sar eax, 1
mov dword [esp + 0x2c], eax
cmp eax, 0x102
jbe 0x4883b2
lea eax, [esp + 0x104]
push eax
call fcn.00409ac6
mov edi, eax
and dword [esp + 0x400], 0
push str.GFE::DAOS::DAOSupportImplementation::ScanFiles:_cannot_scan_
push edi
call fcn.0040fa1f
push esi
push edi
call fcn.0040fa1f
push str._because_it_is_longer_than_MAX_PATH_with__appended
push edi
call fcn.0040fa1f
add esp, 0x18
lea eax, [esp + 0xcc]
push eax
mov eax, edi
call fcn.00409b30
mov byte [esp + 0x400], 1
cmp dword [esp + 0xe0], 8
mov eax, dword [esp + 0xcc]
jae 0x48837f
lea eax, [esp + 0xcc]
xor ecx, ecx
push eax
inc ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xd0]
call fcn.0040b028
or dword [esp + 0x400], 0xffffffff
lea eax, [esp + 0x104]
call fcn.004021a3
jmp 0x4886bf
lea eax, [esi + eax*2]
cmp word [eax - 2], 0x5c
mov dword [esp + 0x10], eax
sete al
movzx eax, al
push 0x189
push eax
mov edi, 0x5dcf34
call fcn.0047a47f
mov edx, dword [esp + 0x18]
pop ecx
mov eax, 0x5c3ac0
pop ecx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4883e1
mov eax, dword [esp + 0x18]
push dword [eax + 0x34]
xor edi, edi
push edi
push edi
lea ecx, [esp + 0x1a8]
push ecx
push dword [eax + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x400], 2
mov word [edx], cx
cmp eax, 0xffffffff
jne 0x4884d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [esp + 0x104]
push eax
call fcn.00409ac6
mov edi, eax
push str.GFE::DAOS::DAOSupportImplementation::ScanFiles:_FindFirstFileEx_failed_with
push edi
mov byte [esp + 0x408], 3
call fcn.0040fa1f
pop ecx
pop ecx
push ebx
push edi
call fcn.0040d432
push str._for
push edi
call fcn.0040fa1f
push esi
push edi
call fcn.0040fa1f
add esp, 0x10
lea eax, [esp + 0xcc]
push eax
mov eax, edi
call fcn.00409b30
mov byte [esp + 0x400], 4
cmp dword [esp + 0xe0], 8
mov eax, dword [esp + 0xcc]
jae 0x4884a9
lea eax, [esp + 0xcc]
xor ecx, ecx
push eax
inc ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xd0]
call fcn.0040b028
mov byte [esp + 0x400], 2
jmp 0x4883a1
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x4884e6
push edi
call fcn.0047bae8
test al, al
jne 0x4886e5
cmp word [esp + 0x1c8], di
je 0x488695
cmp word [esp + 0x1c8], 0x2e
jne 0x488526
cmp word [esp + 0x1ca], di
je 0x488695
cmp word [esp + 0x1ca], 0x2e
jne 0x488526
cmp word [esp + 0x1cc], di
je 0x488695
test byte [esp + 0x19c], 0x10
je 0x488675
add dword [ebx + 8], 1
adc dword [ebx + 0xc], edi
cmp dword [ebp + 0xc], edi
je 0x488695
lea eax, [esp + 0x1c8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x48854e
mov ecx, dword [esp + 0x2c]
sub eax, edx
sar eax, 1
lea eax, [eax + ecx + 1]
cmp eax, 0x103
jbe 0x48860e
lea eax, [esp + 0x34]
push eax
call fcn.00409ac6
mov edi, eax
push str.GFE::DAOS::DAOSupportImplementation::ScanFiles:_Cannot_scan_under_path_
push edi
mov byte [esp + 0x408], 5
call fcn.0040fa1f
push esi
push edi
call fcn.0040fa1f
lea eax, [esp + 0x1d8]
push eax
push edi
call fcn.0040fa1f
push str._as_it_is_longer_than_MAX_PATH.
push edi
call fcn.0040fa1f
add esp, 0x20
lea eax, [esp + 0xe8]
push eax
mov eax, edi
call fcn.00409b30
mov byte [esp + 0x400], 6
cmp dword [esp + 0xfc], 8
mov eax, dword [esp + 0xe8]
jae 0x4885e1
lea eax, [esp + 0xe8]
push eax
push 2
pop ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xec]
call fcn.0040b028
lea eax, [esp + 0x34]
mov byte [esp + 0x400], 2
call fcn.004021a3
jmp 0x48866d
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
cmp cx, di
jne 0x48861d
mov edi, dword [esp + 0x10]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x488633
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
push ebx
push dword [esp + 0x2c]
dec eax
push dword [esp + 0x2c]
mov esi, 0x5c2724
push dword [esp + 0x2c]
movsd dword es:[edi], dword [esi]
push eax
push dword [esp + 0x28]
call fcn.00488293
mov ecx, dword [esp + 0x10]
xor eax, eax
mov word [ecx], ax
mov esi, dword [esp + 0x14]
xor edi, edi
jmp 0x488695
push dword [esp + 0x24]
add dword [ebx], 1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
adc dword [ebx + 4], edi
lea eax, [esp + 0x1cc]
push eax
push esi
call fcn.004888f5
lea eax, [esp + 0x19c]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4884d0
cmp dword [esp + 0x1c], edi
je 0x4886bf
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
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.0055d7fe
mov esp, ebp
pop ebp
ret 0x18
lea ebx, [esp + 0x104]
call fcn.00485ad3
push 0x5ffbe4
mov eax, ebx
push eax
call fcn.005676bc
int3