Function at 0x492087
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x194
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [esp + 4], 4
mov dword [esp], 2
call sym._calloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x49212e
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x503710
mov dword [esp + 8], str.expand_win32_wildcards
mov dword [esp + 4], 0x80f
mov dword [esp], str.shared_file_op.c
call dbg._merror_exit
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strdup
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x492191
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x503710
mov dword [esp + 8], str.expand_win32_wildcards
mov dword [esp + 4], 0x810
mov dword [esp], str.shared_file_op.c
call dbg._merror_exit
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x492678
mov dword [esp + 4], 0x50484d
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strcspn
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strlen
cmp dword [ebp - 0x28], eax
jne 0x4921d4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x492679
mov dword [esp + 4], 4
mov dword [esp], 2
call sym._calloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x492239
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x503710
mov dword [esp + 8], str.expand_win32_wildcards
mov dword [esp + 4], 0x820
mov dword [esp], str.shared_file_op.c
call dbg._merror_exit
mov dword [ebp - 0x1c], 0
jmp 0x492644
mov dword [esp + 4], 0x50484d
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strcspn
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
add eax, edx
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call sym._strchr
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x492286
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strdup
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4922e2
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x503710
mov dword [esp + 8], str.expand_win32_wildcards
mov dword [esp + 4], 0x82b
mov dword [esp], str.shared_file_op.c
call dbg._merror_exit
mov dword [esp + 4], 0x5c
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x492304
mov eax, dword [ebp - 0x2c]
mov byte [eax], 0
lea eax, [ebp - 0x174]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
call eax
sub esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x492409
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
jne 0x492368
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.No_file_that_matches__s.
mov dword [esp + 8], str.expand_win32_wildcards
mov dword [esp + 4], 0x836
mov dword [esp], str.shared_file_op.c
call dbg._mdebug2
jmp 0x4923cd
cmp dword [ebp - 0x34], 3
jne 0x49239b
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.No_folder_that_matches__s.
mov dword [esp + 8], str.expand_win32_wildcards
mov dword [esp + 4], 0x838
mov dword [esp], str.shared_file_op.c
call dbg._mdebug2
jmp 0x4923cd
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.FindFirstFile_failed___lu_____s_n
mov dword [esp + 8], str.expand_win32_wildcards
mov dword [esp + 4], 0x83a
mov dword [esp], str.shared_file_op.c
call dbg._mdebug2
cmp dword [ebp - 0x14], 0
je 0x4923e5
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x24], 0
je 0x4923fd
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
jmp 0x49262c
mov dword [esp + 4], 0x5048a7
lea eax, [ebp - 0x174]
add eax, 0x2c
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x4925bc
mov dword [esp + 4], 0x5048a9
lea eax, [ebp - 0x174]
add eax, 0x2c
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x4925bc
mov eax, dword [ebp - 0x174]
and eax, 0x400
test eax, eax
jne 0x4925bf
mov eax, dword [ebp - 0x174]
and eax, 0x10
test eax, eax
jne 0x492475
cmp dword [ebp - 0x18], 0
jne 0x4925c2
mov eax, dword [ebp - 0x20]
lea edx, [eax*4]
mov eax, dword [ebp - 0x10]
lea ebx, [edx + eax]
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._strdup
mov dword [ebx], eax
mov eax, dword [ebx]
test eax, eax
jne 0x4924e0
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x503710
mov dword [esp + 8], str.expand_win32_wildcards
mov dword [esp + 4], 0x84f
mov dword [esp], str.shared_file_op.c
call dbg._merror_exit
mov eax, dword [ebp - 0x20]
lea edx, [eax*4]
mov eax, dword [ebp - 0x10]
add eax, edx
mov dword [esp + 8], 0x5c
lea edx, [ebp - 0x174]
add edx, 0x2c
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.wm_strcat
cmp dword [ebp - 0x18], 0
je 0x492538
mov eax, dword [ebp - 0x20]
lea edx, [eax*4]
mov eax, dword [ebp - 0x10]
add edx, eax
mov dword [esp + 8], 0x5c
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
call dbg.wm_strcat
mov eax, dword [ebp - 0x20]
add eax, 2
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._realloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4925a1
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x503710
mov dword [esp + 8], str.expand_win32_wildcards
mov dword [esp + 4], 0x856
mov dword [esp], str.shared_file_op.c
call dbg._merror_exit
add dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x20]
lea edx, [eax*4]
mov eax, dword [ebp - 0x10]
add eax, edx
mov dword [eax], 0
jmp 0x4925c3
nop
jmp 0x4925c3
nop
jmp 0x4925c3
nop
lea eax, [ebp - 0x174]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileA]
call eax
sub esp, 8
test eax, eax
jne 0x492409
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
cmp dword [ebp - 0x14], 0
je 0x49260d
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x24], 0
je 0x492625
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
lea edx, [eax*4]
mov eax, dword [ebp - 0xc]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x492245
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0xc], 0
je 0x49266d
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jmp 0x492191
nop
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
leave
ret