Function at 0x6468724c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3cc
mov eax, dword [0x6487656c]
test eax, eax
je 0x646876e8
xor ebx, ebx
mov edi, dword [0x64876570]
test edi, edi
setne bl
xor eax, eax
mov ecx, 0xffffffff
mov edi, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
lea edi, [ecx - 1]
lea edx, [ecx + 2]
cmp edx, 0x7f
jbe 0x64687680
xor eax, eax
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll___PHYSFS_initSmallAlloc
mov esi, eax
test eax, eax
je 0x6468761c
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.647d42ac
cmp byte [esi + edi - 1], 0x5c
je 0x646872ce
mov byte [esi + edi], 0x5c
mov byte [esi + edi + 1], 0
xor eax, eax
mov ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
mov word [esi + ecx - 1], 0x2a
lea edi, [ecx + ecx + 2]
cmp edi, 0x7f
jbe 0x6468769c
xor eax, eax
mov dword [esp + 4], edi
mov dword [esp + 8], 0
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll___PHYSFS_initSmallAlloc
mov dword [ebp - 0x3ac], eax
test eax, eax
je 0x6468761c
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_PHYSFS_utf8ToUcs2
test ebx, ebx
jne 0x646874bc
mov edx, dword [ebp - 0x3ac]
add edx, 2
xor ecx, ecx
xor ebx, ebx
mov eax, dword [ebp - 0x3ac]
cmp word [eax], 0
je 0x64687766
add ecx, 1
adc ebx, 0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x64687350
lea ebx, [ecx + 1]
mov edx, ebx
mov ecx, ebx
sar ecx, 0x1f
cmp ebx, 0x7f
jle 0x6468774a
xor eax, eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll___PHYSFS_initSmallAlloc
mov edx, eax
test eax, eax
je 0x64687720
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x3ac]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x3b0], edx
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
lea edi, [ebp - 0x3a8]
mov dword [esp + 4], edi
mov edx, dword [ebp - 0x3b0]
mov dword [esp], edx
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
mov ebx, eax
mov edx, dword [ebp - 0x3b0]
mov dword [esp], edx
call sym.allegro_5.0.10_monolith_mt.dll___PHYSFS_smallFree
mov eax, dword [ebp - 0x3ac]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll___PHYSFS_smallFree
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll___PHYSFS_smallFree
cmp ebx, 0xffffffff
je 0x6468761c
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x64687487
jmp 0x6468765f
test ah, 4
je 0x64687439
cmp edx, 0xa000000c
je 0x64687470
lea eax, [ebp - 0x37c]
call fcn.64686124
test eax, eax
je 0x64687470
mov dword [esp + 8], eax
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], esi
mov dword [ebp - 0x3b0], eax
mov edx, dword [ebp + 0x10]
call edx
mov eax, dword [ebp - 0x3b0]
mov dword [esp], eax
call dword [0x64878f30]
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
je 0x64687613
mov eax, dword [ebp - 0x3a8]
mov edx, dword [ebp - 0x384]
cmp byte [ebp - 0x37c], 0x2e
jne 0x6468742c
mov cl, byte [ebp - 0x37b]
test cl, cl
je 0x64687470
cmp cl, 0x2e
jne 0x6468742c
cmp byte [ebp - 0x37a], 0
je 0x64687470
jmp 0x6468742c
lea edx, [ebp - 0x268]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x3ac]
mov dword [esp], eax
call dword [0x6487656c]
sub esp, 8
mov ebx, eax
mov eax, dword [ebp - 0x3ac]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll___PHYSFS_smallFree
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll___PHYSFS_smallFree
cmp ebx, 0xffffffff
je 0x6468761c
lea esi, [esi]
mov edx, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x23c]
cmp ax, 0x2e
je 0x646876b8
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x64687530
and dh, 4
je 0x64687530
cmp ecx, 0xa000000c
je 0x646875f5
test ax, ax
je 0x6468773e
lea ecx, [ebp - 0x23a]
xor eax, eax
xor edx, edx
nop
add eax, 1
adc edx, 0
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x64687544
mov esi, eax
mov edi, edx
shld edi, esi, 2
add esi, esi
add esi, esi
add esi, 1
adc edi, 0
mov dword [esp], esi
mov dword [esp + 4], edi
call dword [0x64878f28]
mov edx, eax
test eax, eax
je 0x64687779
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
lea eax, [ebp - 0x23c]
mov dword [esp], eax
mov dword [ebp - 0x3b0], edx
call sym.allegro_5.0.10_monolith_mt.dll_PHYSFS_utf8FromUcs2
xor eax, eax
mov edx, dword [ebp - 0x3b0]
mov ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp], edx
call dword [0x64878f2c]
mov edi, eax
test eax, eax
mov edx, dword [ebp - 0x3b0]
je 0x64687718
mov dword [esp + 8], edi
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov edx, dword [ebp + 0x18]
mov dword [esp], edx
mov edx, dword [ebp + 0x10]
call edx
mov dword [esp], edi
call dword [0x64878f30]
lea edx, [ebp - 0x268]
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [0x64876570]
sub esp, 8
test eax, eax
jne 0x646874fc
mov dword [esp], ebx
call sub.KERNEL32.dll_FindClose
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], eax
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], esi
mov dword [ebp - 0x3b0], eax
mov edx, dword [ebp + 0x10]
call edx
mov eax, dword [ebp - 0x3b0]
mov dword [esp], eax
call dword [0x64878f30]
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
je 0x64687613
cmp byte [ebp - 0x37c], 0x2e
je 0x646876f0
lea eax, [ebp - 0x37c]
call fcn.64686124
test eax, eax
jne 0x64687624
jmp 0x6468764c
lea eax, [ecx + 0x21]
and eax, 0xfffffff0
call fcn.647cb908
sub esp, eax
lea eax, [esp + 0x2f]
and eax, 0xfffffff0
jmp 0x64687291
lea eax, [edi + 0x1f]
and eax, 0xfffffff0
call fcn.647cb908
sub esp, eax
lea eax, [esp + 0x2f]
and eax, 0xfffffff0
jmp 0x646872f1
mov di, word [ebp - 0x23a]
test di, di
je 0x646875f5
cmp di, 0x2e
jne 0x64687518
cmp word [ebp - 0x238], 0
je 0x646875f5
jmp 0x64687518
xor ebx, ebx
jmp 0x64687272
mov al, byte [ebp - 0x37b]
test al, al
je 0x6468764c
cmp al, 0x2e
jne 0x6468766c
cmp byte [ebp - 0x37a], 0
jne 0x6468766c
jmp 0x6468764c
mov edi, edx
jmp 0x646875d6
mov eax, dword [ebp - 0x3ac]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll___PHYSFS_smallFree
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll___PHYSFS_smallFree
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 1
xor edi, edi
jmp 0x64687567
lea eax, [ebx + 1]
add eax, 0x1e
and eax, 0xfffffff0
call fcn.647cb908
sub esp, eax
lea eax, [esp + 0x2f]
and eax, 0xfffffff0
jmp 0x64687376
mov eax, 2
mov edx, 1
xor ecx, ecx
mov ebx, 1
jmp 0x6468774d
mov dword [esp], 0x647fee40
call sym.allegro_5.0.10_monolith_mt.dll___PHYSFS_setError
jmp 0x646875f5