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

Disassembly:
sub esp, 0xa50
push ebx
push ebp
push esi
push edi
call fcn.00498780
test eax, eax
je 0x4984ce
mov eax, dword [esp + 0xa6c]
test eax, eax
je 0x49832b
cmp word [eax], 0
je 0x49832b
push eax
lea eax, [esp + 0x264]
push eax
call fcn.006fac18
add esp, 8
jmp 0x498348
mov edx, dword [esp + 0xa68]
lea ecx, [esp + 0x260]
push 0x1000000
push ecx
push edx
call fcn.0049fc10
add esp, 0xc
mov ebp, dword [esp + 0xa64]
cmp ebp, 0xffffffff
jne 0x4983ae
lea eax, [esp + 0x10]
lea ecx, [esp + 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4983df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x49839a
cmp eax, 3
je 0x49839a
cmp eax, 0x12
je 0x49839a
mov ebx, dword [esp + 0xa70]
mov eax, 1
mov byte [ebx + 0x149c], al
jmp 0x4986ba
mov ebx, dword [esp + 0xa70]
xor eax, eax
mov byte [ebx + 0x149c], al
jmp 0x4986ba
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4983df
or ebp, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0xa70]
cmp eax, 0x12
setne al
mov byte [ebx + 0x149c], al
jmp 0x4986ba
mov ebx, dword [esp + 0xa70]
lea ecx, [esp + 0x260]
push ecx
lea esi, [ebx + 0x400]
push esi
call fcn.006fac18
add esp, 8
lea edx, [esp + 0x3c]
push edx
push esi
call fcn.004991c0
add esp, 4
push eax
call fcn.006fac18
push 0x1000000
push ebx
push esi
call fcn.0049fbd0
mov eax, dword [esp + 0x40]
add esp, 0x14
push 1
push 0
push 0
push eax
call fcn.0044fa70
mov ecx, dword [esp + 0x30]
xor esi, esi
add eax, ecx
lea ecx, [ebx + 0xc80]
adc edx, esi
mov dword [ebx + 0xc00], eax
lea eax, [esp + 0x244]
mov dword [ebx + 0xc04], edx
mov edx, dword [esp + 0x10]
push eax
push ecx
mov dword [ebx + 0xc08], edx
call fcn.006fac18
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x1480], edx
mov edx, dword [esp + 0x28]
mov dword [ebx + 0x1484], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x1488], ecx
mov ecx, dword [esp + 0x30]
add esp, 8
mov dword [ebx + 0x148c], edx
mov dword [ebx + 0x1490], eax
lea esi, [ebx + 0xc14]
lea edx, [esp + 0x24]
mov dword [ebx + 0x1494], ecx
push edx
mov ecx, esi
call fcn.0049f7d0
lea eax, [esp + 0x14]
lea ecx, [ebx + 0xc38]
push eax
call fcn.0049f7d0
lea ecx, [esp + 0x1c]
jmp 0x4986a1
mov edi, dword [esp + 0xa68]
test edi, edi
je 0x498504
cmp byte [edi], 0
je 0x498504
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x260]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x498521
mov edx, dword [esp + 0xa6c]
lea ecx, [esp + 0x260]
push 0x1000000
push ecx
push edx
call fcn.0049fbd0
add esp, 0xc
mov ebp, dword [esp + 0xa64]
cmp ebp, 0xffffffff
jne 0x498576
lea eax, [esp + 0x10]
lea ecx, [esp + 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x49858a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x49839a
cmp eax, 3
je 0x49839a
mov ebx, dword [esp + 0xa70]
mov eax, 1
mov byte [ebx + 0x149c], al
jmp 0x4986ba
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4983be
lea edi, [esp + 0x260]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0xa70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x40]
call fcn.00499130
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x1000000
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x400]
push ecx
push ebx
call fcn.0049fc10
mov edx, dword [esp + 0x3c]
add esp, 0x10
push 1
push 0
push 0
push edx
call fcn.0044fa70
mov ecx, dword [esp + 0x30]
xor esi, esi
add eax, ecx
push 0x1000000
adc edx, esi
mov dword [ebx + 0xc00], eax
lea eax, [ebx + 0xc80]
mov dword [ebx + 0xc04], edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x144]
push eax
push ecx
mov dword [ebx + 0xc08], edx
call fcn.0049fc10
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x1480], edx
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0x1484], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x1488], ecx
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov dword [ebx + 0x148c], edx
mov dword [ebx + 0x1490], eax
lea esi, [ebx + 0xc14]
lea edx, [esp + 0x24]
mov dword [ebx + 0x1494], ecx
push edx
mov ecx, esi
call fcn.0049f7d0
lea eax, [esp + 0x14]
lea ecx, [ebx + 0xc38]
push eax
call fcn.0049f7d0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebx + 0xc5c]
call fcn.0049f7d0
mov ecx, esi
call fcn.0049fad0
mov dword [ebx + 0xc0c], eax
pop edi
mov eax, ebp
pop esi
mov dword [ebx + 0x1498], 0
pop ebp
pop ebx
add esp, 0xa50
ret