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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], 0xffffffff
mov byte [ebx], 0
xor eax, eax
mov dword [ebp - 8], eax
xor edi, edi
cmp dword [0x556164], 0
je 0x472ad9
mov edi, 1
push dword [ebp + 0xc]
push esi
call fcn.005394dc
add esp, 8
test edi, edi
jne 0x472b00
push 0x37
lea eax, [ebp - 0x120]
push eax
push esi
call fcn.0053cd24
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x472b24
lea edx, [ebp - 0x260]
push edx
push esi
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x472b1f
mov dword [ebp - 4], 1
jmp 0x472b24
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
call fcn.005395b8
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.005395b8
pop ecx
pop edx
sub edx, eax
mov byte [esi + edx], 0
jmp 0x472dd9
test edi, edi
jne 0x472b91
test byte [ebp - 0x118], 0x10
je 0x472b76
cmp dword [ebp + 0x1c], 0
je 0x472b61
cmp byte [ebp - 0x110], 0x2e
jne 0x472bf5
lea eax, [ebp - 0x120]
push eax
call fcn.0053cde4
pop ecx
mov dword [ebp - 4], eax
jmp 0x472dd9
cmp dword [ebp + 0x1c], 1
jne 0x472bf5
lea ecx, [ebp - 0x120]
push ecx
call fcn.0053cde4
pop ecx
mov dword [ebp - 4], eax
jmp 0x472dd9
test byte [ebp - 0x260], 0x10
je 0x472bcc
cmp dword [ebp + 0x1c], 0
je 0x472ba9
cmp byte [ebp - 0x234], 0x2e
jne 0x472bf5
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x472dd9
mov dword [ebp - 4], 1
jmp 0x472dd9
cmp dword [ebp + 0x1c], 1
jne 0x472bf5
lea edx, [ebp - 0x260]
push edx
push dword [ebp - 0xc]
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x472dd9
mov dword [ebp - 4], 1
jmp 0x472dd9
inc dword [ebp - 8]
cmp dword [ebp + 0x14], 0
jle 0x472c0a
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
jl 0x472d39
cmp dword [ebp + 0x18], 0
jne 0x472c1a
cmp dword [ebp + 0x20], 0
je 0x472d39
push esi
push edi
mov edi, esi
mov esi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test edi, edi
jne 0x472c5c
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.005394dc
add esp, 8
push ebx
call fcn.00541e38
pop ecx
jmp 0x472c6c
lea edx, [ebp - 0x234]
push edx
push ebx
call fcn.005394dc
add esp, 8
cmp dword [ebp + 0x44], 0
je 0x472c85
push 0x180
push ebx
push ebx
call sub.KERNEL32.dll_GetShortPathNameA
push ebx
call fcn.00541e38
pop ecx
cmp dword [ebp + 0x18], 0
je 0x472cb4
push ebx
push 0
push 0x180
push dword [ebp + 0x18]
call sub.USER32.dll_SendMessageA
cmp eax, 0xffffffff
je 0x472cb4
push dword [0x54d2b4]
push eax
push 0x19a
push dword [ebp + 0x18]
call sub.USER32.dll_SendMessageA
cmp dword [ebp + 0x20], 0
je 0x472d36
push 0
push 0
push dword [ebp + 0x20]
push 0
call fcn.004b0c4c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x472cea
push 2
push str.Lighthouse
push 0
push dword [0x55b3d8]
call fcn.00467118
jmp 0x472fa4
cmp dword [ebp + 0x28], 0
je 0x472cf7
mov eax, 2
jmp 0x472cfc
mov eax, 1
push dword [ebp + 0x40]
push 0
push dword [ebp + 0x3c]
push 0
push 0
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push 0
push 0
push 0
push 0
push 0
push eax
push ebx
push dword [ebp - 0x10]
push dword [0x55b3d8]
call fcn.0049bd20
push dword [ebp - 0x10]
call fcn.004b12ac
mov byte [ebx], 0
cmp dword [ebp + 0x14], 0
jle 0x472da9
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x14]
jl 0x472da9
push esi
push edi
mov edi, esi
mov esi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test edi, edi
jne 0x472d89
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.005394dc
add esp, 8
push ebx
call fcn.00541e38
pop ecx
jmp 0x472da1
lea edx, [ebp - 0x234]
push edx
push ebx
call fcn.005394dc
add esp, 8
push dword [ebp - 0xc]
call sub.KERNEL32.dll_FindClose
mov eax, dword [ebp - 8]
jmp 0x472fa4
test edi, edi
jne 0x472dbf
lea edx, [ebp - 0x120]
push edx
call fcn.0053cde4
pop ecx
mov dword [ebp - 4], eax
jmp 0x472dd9
lea ecx, [ebp - 0x260]
push ecx
push dword [ebp - 0xc]
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x472dd9
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x472b41
cmp dword [ebp - 0xc], 0xffffffff
je 0x472df1
push dword [ebp - 0xc]
call sub.KERNEL32.dll_FindClose
mov dword [ebp - 0xc], 0xffffffff
dec dword [ebp + 0x24]
cmp dword [ebp + 0x24], 0
jg 0x472e09
mov eax, dword [ebp - 8]
jmp 0x472fa4
push 0x55133c
push esi
call fcn.005394dc
add esp, 8
test edi, edi
jne 0x472e32
push 0x37
lea edx, [ebp - 0x120]
push edx
push esi
call fcn.0053cd24
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x472e56
lea ecx, [ebp - 0x260]
push ecx
push esi
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x472e51
mov dword [ebp - 4], 1
jmp 0x472e56
xor eax, eax
mov dword [ebp - 4], eax
push esi
call fcn.005395b8
pop ecx
mov byte [esi + eax - 3], 0
jmp 0x472f89
test edi, edi
jne 0x472ea4
test byte [ebp - 0x118], 0x10
je 0x472e7d
cmp byte [ebp - 0x110], 0x2e
jne 0x472e92
lea edx, [ebp - 0x120]
push edx
call fcn.0053cde4
pop ecx
mov dword [ebp - 4], eax
jmp 0x472f89
lea ecx, [ebp - 0x110]
push ecx
push esi
call fcn.005394dc
add esp, 8
jmp 0x472ee9
test byte [ebp - 0x260], 0x10
je 0x472eb6
cmp byte [ebp - 0x234], 0x2e
jne 0x472ed9
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x472f89
mov dword [ebp - 4], 1
jmp 0x472f89
lea edx, [ebp - 0x234]
push edx
push esi
call fcn.005394dc
add esp, 8
push 0x551341
push esi
call fcn.005394dc
add esp, 8
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp - 8]
push ecx
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00472aa8
add dword [ebp - 8], eax
cmp byte [ebx], 0
jne 0x472f93
push 0x5c
push esi
call fcn.005398a0
add esp, 8
test eax, eax
je 0x472f59
mov byte [eax], 0
push 0x5c
push esi
call fcn.005398a0
add esp, 8
test eax, eax
je 0x472f59
inc eax
mov byte [eax], 0
test edi, edi
jne 0x472f6f
lea eax, [ebp - 0x120]
push eax
call fcn.0053cde4
pop ecx
mov dword [ebp - 4], eax
jmp 0x472f89
lea edx, [ebp - 0x260]
push edx
push dword [ebp - 0xc]
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x472f89
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x472e67
cmp dword [ebp - 0xc], 0xffffffff
je 0x472fa1
push dword [ebp - 0xc]
call sub.KERNEL32.dll_FindClose
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40