Function at 0x4f8390
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x647b2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x294
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x38], ecx
mov dword [ecx + 0x6c], edi
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edi
mov word [esp + 0x20], di
mov eax, dword [0x6fca20]
mov dword [esp + 0x2ac], edi
cmp eax, edi
jne 0x4f83dc
mov eax, 0x6fca24
mov edx, str._sLanguagesidm_.lng
test edx, edx
je 0x4f84c7
cmp eax, edi
je 0x4f84c7
push eax
lea ecx, [esp + 0x2c]
call fcn.00401ee0
mov bl, 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2ac], bl
call fcn.00401070
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov word [esp + 0x14], di
push edi
push str._sLanguagesidm_.lng
lea ecx, [esp + 0x18]
mov byte [esp + 0x2b4], 2
call fcn.004027e0
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x1c], edi
je 0x4f84a0
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x28]
call fcn.00401f10
push eax
lea ecx, [esp + 0x14]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2ac], bl
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x2ac], 0
call fcn.00401070
mov ecx, dword [esp + 0x1c]
xor edi, edi
cmp ecx, edi
mov eax, ecx
jne 0x4f84d1
lea eax, [esp + 0x20]
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x34], ebp
je 0x4f869a
mov bl, 5
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov word [esp + 0x14], di
mov esi, dword [0x6fca20]
mov byte [esp + 0x2ac], 3
cmp esi, edi
jne 0x4f8514
mov esi, 0x6fca24
mov ecx, str._sLanguages_s
test ecx, ecx
je 0x4f8656
cmp esi, edi
je 0x4f8656
lea edx, [esp + 0x80]
test edx, edx
je 0x4f8656
lea ecx, [esp + 0x28]
call fcn.004027c0
push edi
push str._sLanguages_s
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b4], 4
call fcn.004027e0
push esi
lea ecx, [esp + 0x4c]
call fcn.00401ee0
lea eax, [esp + 0x80]
lea ecx, [esp + 0x3c]
push eax
mov byte [esp + 0x2b0], bl
call fcn.00401ee0
lea ecx, [esp + 0x10]
mov byte [esp + 0x2ac], 6
call fcn.00401070
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x48]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x10], edi
je 0x4f861a
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x3c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x4c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x30]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2ac], bl
call fcn.00401070
lea ecx, [esp + 0x48]
mov byte [esp + 0x2ac], 4
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x2ac], 3
call fcn.00401070
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x34]
xor edi, edi
cmp eax, edi
jne 0x4f865e
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x38]
push eax
call fcn.004f7820
lea edx, [esp + 0x54]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov byte [esp + 0x2ac], 0
lea ecx, [esp + 0x10]
je 0x4f868e
call fcn.00401070
jmp 0x4f84ee
call fcn.00401070
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2ac], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x2a4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a0
ret