Function at 0x4d7de0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5c78d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x68
call fcn.005a1be9
add esp, 4
mov dword [esp + 0x28], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x298], esi
je 0x4d7e25
mov ecx, eax
call fcn.00463780
jmp 0x4d7e27
xor eax, eax
or ebx, 0xffffffff
mov ecx, eax
mov dword [esp + 0x298], ebx
mov dword [esp + 0x2c], eax
call fcn.004638c0
mov eax, dword [0x688224]
mov ecx, dword [esp + 0x2c]
push eax
add ecx, 0x58
push 0x65bf6c
push ecx
call fcn.0059e618
mov eax, dword [edi + 0x1c]
lea ebp, [edi + 0x14]
add esp, 0xc
lea edx, [esp + 0x2c]
mov ecx, ebp
push edx
push eax
call fcn.004d8410
push 0x68
call fcn.005a1be9
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, esi
mov dword [esp + 0x298], 1
je 0x4d7e90
mov ecx, eax
call fcn.00463780
mov esi, eax
mov ecx, esi
mov dword [esp + 0x298], ebx
mov dword [esi + 0x64], 2
call fcn.004638c0
mov eax, dword [0x688220]
lea ecx, [esi + 0x58]
push eax
push 0x65bf6c
push ecx
call fcn.0059e618
mov ebx, dword [ebp + 8]
add esp, 0xc
mov ecx, ebp
lea edx, [ebx + 1]
push 0xffffffffffffffff
push edx
call fcn.00417d90
mov eax, dword [ebp + 4]
mov dword [eax + ebx*4], esi
mov al, byte [edi + 4]
test al, al
je 0x4d8129
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], bx
mov eax, dword [edi + 8]
mov dword [esp + 0x298], 2
cmp eax, ebx
je 0x4d7f04
mov edi, eax
jmp 0x4d7f07
add edi, 0xc
mov edx, str._sq_.dt
test edx, edx
je 0x4d7fe7
cmp edi, ebx
je 0x4d7fe7
push edi
lea ecx, [esp + 0x14]
call fcn.00403af0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x298], 3
call fcn.00401070
push str._sq_.dt
lea ecx, [esp + 0x34]
call fcn.00401e50
mov eax, dword [esp + 0x10]
mov byte [esp + 0x298], 4
cmp eax, ebx
jne 0x4d7f59
lea eax, [esp + 0x14]
mov esi, dword [esp + 0x38]
push eax
call fcn.00589432
lea esi, [eax + esi + 2]
lea ebx, [esi + esi]
push ebx
call fcn.005a1be9
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x1c], edi
je 0x4d7fbf
mov ecx, ebx
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.00401ed0
push eax
lea ecx, [esp + 0x34]
call fcn.00401ed0
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.005893c2
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00589432
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x298], 3
call fcn.00401070
lea ecx, [esp + 0x10]
mov byte [esp + 0x298], 2
call fcn.00401070
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
cmp ecx, ebx
mov eax, ecx
jne 0x4d7ff1
lea eax, [esp + 0x20]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x28], edi
je 0x4d8115
lea eax, [esp + 0x6c]
push 0x5f
push eax
call fcn.00589382
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4d80fa
mov cx, word [esi + 2]
add esi, 2
push ecx
call fcn.0058c27a
add esp, 4
test eax, eax
je 0x4d80fa
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
call fcn.00401ee0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x298], 5
cmp eax, ebx
jne 0x4d8068
lea eax, [esp + 0x14]
push 0x2e
push eax
call fcn.0058989f
add esp, 8
cmp eax, ebx
je 0x4d80e5
mov word [eax], bx
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4d8086
lea eax, [esp + 0x14]
push eax
call fcn.0058ade1
mov edi, eax
add esp, 4
cmp edi, 2
jle 0x4d80e5
push 0x68
call fcn.005a1be9
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x298], 6
je 0x4d80bb
mov ecx, eax
call fcn.00463780
mov esi, eax
jmp 0x4d80bd
xor esi, esi
mov ecx, esi
mov byte [esp + 0x298], 5
mov dword [esi + 0x64], edi
call fcn.004638c0
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
mov ecx, ebp
lea edx, [edi + 1]
push edx
call fcn.00417d90
mov eax, dword [ebp + 4]
mov dword [eax + edi*4], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x298], 2
call fcn.00401070
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x40]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d800c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x298], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28c
ret