Function at 0x4d4b40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x60105d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa98
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 [0x6cee18]
mov dword [esp + 0xab0], ebx
cmp eax, ebx
jne 0x4d4b89
mov eax, 0x6cee1c
mov edx, str._sLanguagesinst_.lng
test edx, edx
je 0x4d4c70
cmp eax, ebx
je 0x4d4c70
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
call fcn.00401f60
lea ecx, [esp + 0x20]
mov byte [esp + 0xab0], 1
call fcn.00401070
push str._sLanguagesinst_.lng
lea ecx, [esp + 0x30]
call fcn.00401ed0
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x10]
mov byte [esp + 0xab0], 2
call fcn.00401f50
push eax
call fcn.005c4b4a
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005dd58d
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x4d4c4b
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.00401f50
push eax
lea ecx, [esp + 0x30]
call fcn.00401f50
push eax
mov eax, dword [esp + 0x28]
push esi
push eax
call fcn.005c4ada
mov ecx, dword [esp + 0x30]
push ecx
call fcn.005c4b4a
add esp, 0x14
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xab0], 1
call fcn.00401070
lea ecx, [esp + 0x10]
mov byte [esp + 0xab0], bl
call fcn.00401070
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
mov eax, ecx
jne 0x4d4c7a
lea eax, [esp + 0x24]
lea edx, [esp + 0x58]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x38], eax
je 0x4d4f65
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov word [esp + 0x14], bx
mov esi, dword [0x6cee18]
mov byte [esp + 0xab0], 3
cmp esi, ebx
jne 0x4d4cb9
mov esi, 0x6cee1c
mov ecx, str._sLanguages_s
test ecx, ecx
je 0x4d4de9
cmp esi, ebx
je 0x4d4de9
lea edx, [esp + 0x84]
test edx, edx
je 0x4d4de9
push ecx
lea ecx, [esp + 0x50]
call fcn.00401ed0
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0xab4], 4
call fcn.0040d680
lea eax, [esp + 0x84]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0xab4], 5
call fcn.0040d680
lea ecx, [esp + 0x10]
mov byte [esp + 0xab0], 6
call fcn.00401070
mov edi, dword [esp + 0x2c]
cmp edi, ebx
jne 0x4d4d2f
lea edi, [esp + 0x30]
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x40]
call fcn.00401f50
push eax
call fcn.005c4b4a
push edi
mov ebp, eax
call fcn.005c4b4a
add esi, ebp
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005dd58d
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x4d4db2
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 + 0x40]
call fcn.00401f50
push eax
lea ecx, [esp + 0x30]
call fcn.00401f50
push eax
lea ecx, [esp + 0x54]
call fcn.00401f50
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005c4ada
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c4b4a
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xab0], 5
call fcn.00401070
lea ecx, [esp + 0x2c]
mov byte [esp + 0xab0], 4
call fcn.00401070
lea ecx, [esp + 0x4c]
mov byte [esp + 0xab0], 3
call fcn.00401070
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4d4df1
lea eax, [esp + 0x14]
push 0x6a290c
push eax
call fcn.005c62b7
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x4d4e80
push ebp
lea edx, [esp + 0x2ac]
push 0x800
push edx
call fcn.005c64ca
add esp, 0xc
test eax, eax
je 0x4d4e77
mov ecx, 7
mov edi, str.instlng
lea esi, [esp + 0x2a8]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4d4e77
lea ecx, [esp + 0x2af]
push 0x3d
push ecx
call fcn.005c4b80
add esp, 8
cmp eax, ebx
je 0x4d4e77
lea edx, [esp + 0x3c]
inc eax
push edx
push 0x6b84d8
push eax
call fcn.005c670c
add esp, 0xc
cmp eax, 1
jne 0x4d4e77
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov ax, word [ecx + 0x30]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
je 0x4d4ead
push ebp
call fcn.005c60d0
add esp, 4
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x58]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov byte [esp + 0xab0], bl
lea ecx, [esp + 0x10]
je 0x4d4f55
call fcn.00401070
jmp 0x4d4c93
mov esi, 0x5202
push ebp
lea ecx, [esp + 0x2ac]
push 0x800
push ecx
call fcn.005c64ca
add esp, 0xc
test eax, eax
je 0x4d4f4a
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2a8]
push edx
push 0x6a0000
push eax
mov dword [esp + 0x28], ebx
call fcn.005c670c
add esp, 0xc
cmp eax, 1
jne 0x4d4eb2
cmp dword [esp + 0x1c], esi
jne 0x4d4eb2
lea ecx, [esp + 0x2a8]
push 0x3d
push ecx
call fcn.005c4b80
mov edx, eax
add esp, 8
cmp edx, ebx
je 0x4d4f4a
inc edx
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x4d4f37
mov al, byte [ecx + edx - 1]
dec ecx
cmp al, 0xa
jne 0x4d4f2b
mov byte [ecx + edx], bl
mov al, byte [ecx + edx - 1]
dec ecx
cmp al, 0xd
jne 0x4d4f37
mov byte [ecx + edx], bl
push edx
push 0x69ffbc
push 0x6cf478
call fcn.005d9fbb
add esp, 0xc
mov byte [esp + 0xab0], bl
lea ecx, [esp + 0x10]
call fcn.00401070
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x20]
mov dword [esp + 0xab0], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0xaa8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xaa4
ret