Function at 0x4f89d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x647b8d
push eax
mov eax, 0x12c0
mov dword fs:[0], esp
call fcn.00609d40
mov dword [esp + 0xc], ecx
push ebx
push ebp
xor ebx, ebx
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], bx
mov eax, dword [0x6fca20]
mov dword [esp + 0x12d8], ebx
cmp eax, ebx
jne 0x4f8a1d
mov eax, 0x6fca24
mov edx, str._sLanguagesinst_.lng
test edx, edx
je 0x4f8b0e
cmp eax, ebx
je 0x4f8b0e
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
call fcn.00401f20
lea ecx, [esp + 0x20]
mov byte [esp + 0x12d8], 1
call fcn.00401070
lea ecx, [esp + 0x2c]
call fcn.004027c0
push ebx
push str._sLanguagesinst_.lng
lea ecx, [esp + 0x34]
mov byte [esp + 0x12e0], 2
call fcn.004027e0
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x10]
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
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x4f8ae9
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 + 0x10]
call fcn.00401f10
push eax
lea ecx, [esp + 0x30]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x28]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12d8], 1
call fcn.00401070
lea ecx, [esp + 0x10]
mov byte [esp + 0x12d8], bl
call fcn.00401070
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
mov eax, ecx
jne 0x4f8b18
lea eax, [esp + 0x24]
lea edx, [esp + 0x80]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x40], eax
je 0x4f8efe
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov word [esp + 0x14], bx
mov esi, dword [0x6fca20]
mov byte [esp + 0x12d8], 3
cmp esi, ebx
jne 0x4f8b5a
mov esi, 0x6fca24
mov ecx, str._sLanguages_s
test ecx, ecx
je 0x4f8c98
cmp esi, ebx
je 0x4f8c98
lea edx, [esp + 0xac]
test edx, edx
je 0x4f8c98
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
push ebx
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x12e0], 4
call fcn.004027e0
push esi
lea ecx, [esp + 0x58]
call fcn.00401ee0
lea eax, [esp + 0xac]
lea ecx, [esp + 0x48]
push eax
mov byte [esp + 0x12dc], 5
call fcn.00401ee0
lea ecx, [esp + 0x10]
mov byte [esp + 0x12d8], 6
call fcn.00401070
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x48]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x54]
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
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x4f8c61
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 + 0x48]
call fcn.00401f10
push eax
lea ecx, [esp + 0x58]
call fcn.00401f10
push eax
lea ecx, [esp + 0x34]
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 + 0x48]
mov byte [esp + 0x12d8], 5
call fcn.00401070
lea ecx, [esp + 0x54]
mov byte [esp + 0x12d8], 4
call fcn.00401070
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12d8], 3
call fcn.00401070
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4f8ca0
lea eax, [esp + 0x14]
push 0x6cc230
push eax
call fcn.0060b21f
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0x3c], esi
je 0x4f8d6d
push esi
lea edx, [esp + 0x2d4]
push 0x1000
push edx
call fcn.0060b525
add esp, 0xc
test eax, eax
je 0x4f8d64
mov cl, byte [esp + 0x2d0]
xor ebp, ebp
xor eax, eax
cmp cl, 0xef
jne 0x4f8d08
cmp byte [esp + 0x2d1], 0xbb
jne 0x4f8d08
cmp byte [esp + 0x2d2], 0xbf
jne 0x4f8d08
mov eax, 3
mov ebp, 1
mov ecx, 7
mov edi, str.instlng
lea esi, [esp + eax + 0x2d0]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4f8d60
lea eax, [esp + eax + 0x2d7]
push 0x3d
push eax
call fcn.00609c00
add esp, 8
cmp eax, ebx
je 0x4f8d60
lea ecx, [esp + 0x44]
inc eax
push ecx
push 0x6e4b48
push eax
call fcn.0060a0d0
add esp, 0xc
cmp eax, 1
jne 0x4f8d60
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
xor eax, eax
mov ax, word [ecx + 0x30]
cmp eax, edx
je 0x4f8d9d
mov esi, dword [esp + 0x3c]
push esi
call fcn.0060b038
add esp, 4
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x80]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov byte [esp + 0x12d8], bl
lea ecx, [esp + 0x10]
je 0x4f8eee
call fcn.00401070
jmp 0x4f8b34
cmp ebp, ebx
mov dword [esp + 0x38], ebx
je 0x4f8daf
mov dword [esp + 0x38], 0xfde9
jmp 0x4f8deb
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x64]
mov dword [esp + 0x60], ebx
cmp edx, 0x400
rep stosd dword es:[edi], eax
jg 0x4f8dce
add edx, 0x400
lea ecx, [esp + 0x60]
push 0x1000
push ecx
push edx
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x4f8deb
mov edx, dword [esp + 0x64]
mov dword [esp + 0x38], edx
mov esi, 0x5202
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2d0]
push eax
push 0x800
push ecx
call fcn.0060b525
add esp, 0xc
test eax, eax
je 0x4f8ee3
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2d0]
push edx
push 0x6c9150
push eax
mov dword [esp + 0x28], ebx
call fcn.0060a0d0
add esp, 0xc
cmp eax, 1
jne 0x4f8df0
cmp dword [esp + 0x1c], esi
jne 0x4f8df0
lea ecx, [esp + 0x2d0]
push 0x3d
push ecx
call fcn.00609c00
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4f8ee3
inc esi
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x4f8e81
mov al, byte [ecx + esi - 1]
dec ecx
cmp al, 0xa
jne 0x4f8e75
mov byte [ecx + esi], bl
mov al, byte [ecx + esi - 1]
dec ecx
cmp al, 0xd
jne 0x4f8e81
mov byte [ecx + esi], bl
mov ecx, 0x6fcf68
call fcn.00401070
cmp esi, ebx
je 0x4f8ee3
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4f8ee3
mov ebp, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push ebp
call edi
cmp eax, ebx
mov dword [0x6fcf70], eax
je 0x4f8ee3
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
add esp, 4
cmp eax, ebx
mov dword [0x6fcf68], eax
je 0x4f8ee3
mov ecx, dword [0x6fcf70]
push ecx
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebp
call edi
mov dword [0x6fcf70], eax
mov byte [esp + 0x12d8], bl
lea ecx, [esp + 0x10]
call fcn.00401070
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x20]
mov dword [esp + 0x12d8], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x12d0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12cc
ret