Function at 0x4d6d00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x62c576
mov eax, dword fs:[0]
push eax
mov eax, 0x1298
call fcn.005f9ca0
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x1294], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x12ac]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov word [esp + 0x50], ax
mov dword [esp + 0x12b4], ebx
mov eax, dword [0x70f66c]
cmp eax, ebx
jne 0x4d6d69
mov eax, 0x70f670
push ebx
push eax
push str._sLanguagesinst_.lng
lea ecx, [esp + 0x58]
call fcn.00402190
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jne 0x4d6d85
lea eax, [esp + 0x50]
lea ecx, [esp + 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, 0xffffffff
je 0x4d7030
xor edx, edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov word [esp + 0x44], dx
mov byte [esp + 0x12b4], 1
mov eax, dword [0x70f66c]
cmp eax, ebx
jne 0x4d6dc5
mov eax, 0x70f670
push ebx
lea ecx, [esp + 0x88]
push ecx
push eax
push str._sLanguages_s
lea ecx, [esp + 0x50]
call fcn.00402300
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x4d6de9
lea eax, [esp + 0x44]
push 0x653ab8
push eax
call fcn.005fb2bd
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4d6eb9
push edi
lea edx, [esp + 0x2ac]
push 0x1000
push edx
call fcn.005fbce7
add esp, 0xc
test eax, eax
je 0x4d6eb0
xor esi, esi
xor ecx, ecx
cmp byte [esp + 0x2a8], 0xef
jne 0x4d6e49
cmp byte [esp + 0x2a9], 0xbb
jne 0x4d6e49
cmp byte [esp + 0x2aa], 0xbf
jne 0x4d6e49
mov ecx, 3
lea esi, [ecx - 2]
cmp dword [esp + ecx + 0x2a8], 0x74736e69
lea eax, [esp + ecx + 0x2a8]
jne 0x4d6eb0
add eax, 4
cmp byte [eax], 0x6c
jne 0x4d6eb0
cmp byte [eax + 1], 0x6e
jne 0x4d6eb0
cmp byte [eax + 2], 0x67
jne 0x4d6eb0
lea eax, [esp + ecx + 0x2af]
push 0x3d
push eax
call fcn.005f9b50
add esp, 8
cmp eax, ebx
je 0x4d6eb0
lea ecx, [esp + 0x18]
push ecx
inc eax
push 0x6546dc
push eax
call fcn.005f9f5e
add esp, 0xc
cmp eax, 1
jne 0x4d6eb0
mov edx, dword [esp + 0x14]
movzx eax, word [edx + 0x30]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x4d6ee2
push edi
call fcn.005faf97
add esp, 4
lea ecx, [esp + 0x58]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4d7019
mov byte [esp + 0x12b4], bl
lea ecx, [esp + 0x40]
call fcn.004011f0
jmp 0x4d6da0
xor ebp, ebp
cmp esi, ebx
je 0x4d6eef
mov ebp, 0xfde9
jmp 0x4d6f38
xor eax, eax
cmp ecx, 0x400
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jg 0x4d6f1f
add ecx, 0x400
push 0x1000
lea edx, [esp + 0x24]
push edx
push ecx
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x4d6f38
mov ebp, dword [esp + 0x24]
push edi
lea eax, [esp + 0x2ac]
push 0x800
push eax
call fcn.005fbce7
add esp, 0xc
test eax, eax
je 0x4d7003
mov esi, 0x5202
jmp 0x4d6f60
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2ac]
push 0x64f36c
push edx
mov dword [esp + 0x20], ebx
call fcn.005f9f5e
add esp, 0xc
cmp eax, 1
jne 0x4d6f89
cmp dword [esp + 0x14], esi
je 0x4d6fb9
push edi
lea eax, [esp + 0x2ac]
push 0x800
push eax
call fcn.005fbce7
add esp, 0xc
test eax, eax
jne 0x4d6f60
mov byte [esp + 0x12b4], bl
lea ecx, [esp + 0x40]
call fcn.004011f0
mov ebp, dword [esp + 0x1c]
jmp 0x4d7029
lea ecx, [esp + 0x2a8]
push 0x3d
push ecx
call fcn.005f9b50
add esp, 8
cmp eax, ebx
je 0x4d7003
inc eax
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4d6fd5
sub ecx, esi
cmp ecx, 2
jle 0x4d6ff7
dec ecx
cmp byte [ecx + eax], 0xa
jne 0x4d6fed
mov byte [ecx + eax], bl
dec ecx
cmp byte [ecx + eax], 0xd
jne 0x4d6ff7
mov byte [ecx + eax], bl
push ebp
push eax
mov ecx, 0x70ffd4
call fcn.00401960
mov byte [esp + 0x12b4], bl
lea ecx, [esp + 0x40]
call fcn.004011f0
mov ebp, dword [esp + 0x1c]
jmp 0x4d7029
mov byte [esp + 0x12b4], bl
lea ecx, [esp + 0x40]
call fcn.004011f0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x12b4], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.004011f0
mov ecx, dword [esp + 0x12ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1294]
xor ecx, esp
call fcn.005f85e7
add esp, 0x12a4
ret