Function at 0x4e2d10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4e3140
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4e3140
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x4e3140
cmp byte [ebp + 0x10], 0
je 0x4e2d7d
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x4e2d4c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0x18]
push edi
push dword [ebx + 0x260]
call fcn.004e2860
add esp, 0xc
mov edi, eax
lea eax, [ebx + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
mov dword [ebx + 0xc], eax
call fcn.00580204
add esp, 4
cmp dword [ebx + 0xc], 0xffffffff
jmp 0x4e2d8c
lea eax, [ebx + 0x10]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4e3113
lea ecx, [ebx + 0x3c]
lea edx, [ecx + 2]
jmp 0x4e2da0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e2da0
mov eax, dword [ebp + 0xc]
sub ecx, edx
sar ecx, 1
dec eax
lea edi, [ecx + ecx]
cmp eax, 0xb
ja case.0x4e2dc6.4
movzx eax, byte [eax + 0x4e315c]
jmp dword [eax*4 + 0x4e3148]
lea eax, [edi + 0x44]
push eax
push esi
call fcn.004387b0
add esp, 8
test eax, eax
je 0x4e3113
cmp edi, 0xffffffbf
ja 0x4e3113
lea eax, [edi + 0x40]
push eax
push esi
call fcn.004cf590
push 0
push esi
call fcn.004cf590
push 0
push esi
call fcn.004cf590
push dword [ebx + 0x14]
push esi
call fcn.004cf590
push dword [ebx + 0x18]
push esi
call fcn.004cf590
push dword [ebx + 0x1c]
push esi
call fcn.004cf590
push dword [ebx + 0x20]
push esi
call fcn.004cf590
push dword [ebx + 0x24]
push esi
call fcn.004cf590
add esp, 0x40
push dword [ebx + 0x28]
push esi
call fcn.004cf590
push dword [ebx + 0x24]
push esi
call fcn.004cf590
push dword [ebx + 0x28]
push esi
call fcn.004cf590
push dword [ebx + 0x30]
push esi
call fcn.004cf590
push dword [ebx + 0x2c]
push esi
call fcn.004cf590
push dword [ebx + 0x30]
push esi
call fcn.004cf590
push dword [ebx + 0x2c]
push esi
call fcn.004cf590
push dword [ebx + 0x10]
push esi
call fcn.004cf590
add esp, 0x40
push edi
push esi
call fcn.004cf590
push edi
lea eax, [ebx + 0x3c]
push eax
push esi
call fcn.004e2830
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [edi + 0x48]
push eax
push esi
call fcn.004387b0
add esp, 8
test eax, eax
je 0x4e3113
cmp edi, 0xffffffbb
ja 0x4e3113
lea eax, [edi + 0x44]
push eax
push esi
call fcn.004cf590
push 0
push esi
call fcn.004cf590
push 0
push esi
call fcn.004cf590
push dword [ebx + 0x14]
push esi
call fcn.004cf590
push dword [ebx + 0x18]
push esi
call fcn.004cf590
push dword [ebx + 0x1c]
push esi
call fcn.004cf590
push dword [ebx + 0x20]
push esi
call fcn.004cf590
push dword [ebx + 0x24]
push esi
call fcn.004cf590
add esp, 0x40
push dword [ebx + 0x28]
push esi
call fcn.004cf590
push dword [ebx + 0x24]
push esi
call fcn.004cf590
push dword [ebx + 0x28]
push esi
call fcn.004cf590
push dword [ebx + 0x30]
push esi
call fcn.004cf590
push dword [ebx + 0x2c]
push esi
call fcn.004cf590
push dword [ebx + 0x30]
push esi
call fcn.004cf590
push dword [ebx + 0x2c]
push esi
call fcn.004cf590
push dword [ebx + 0x10]
push esi
call fcn.004cf590
add esp, 0x40
push edi
push esi
call fcn.004cf590
push 0
push esi
call fcn.004cf590
push edi
lea eax, [ebx + 0x3c]
push eax
push esi
call fcn.004e2830
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [edi + 0x61]
push eax
push esi
call fcn.004387b0
add esp, 8
test eax, eax
je 0x4e3113
cmp edi, 0xffffffa2
ja 0x4e3113
lea eax, [edi + 0x5d]
push eax
push esi
call fcn.004cf590
push 0
push esi
call fcn.004cf590
push 0
push esi
call fcn.004cf590
push dword [ebx + 0x14]
push esi
call fcn.004cf590
push dword [ebx + 0x18]
push esi
call fcn.004cf590
push dword [ebx + 0x1c]
push esi
call fcn.004cf590
push dword [ebx + 0x20]
push esi
call fcn.004cf590
push dword [ebx + 0x24]
push esi
call fcn.004cf590
add esp, 0x40
push dword [ebx + 0x28]
push esi
call fcn.004cf590
push dword [ebx + 0x24]
push esi
call fcn.004cf590
push dword [ebx + 0x28]
push esi
call fcn.004cf590
push dword [ebx + 0x30]
push esi
call fcn.004cf590
push dword [ebx + 0x2c]
push esi
call fcn.004cf590
push dword [ebx + 0x30]
push esi
call fcn.004cf590
push dword [ebx + 0x2c]
push esi
call fcn.004cf590
push dword [ebx + 0x10]
push esi
call fcn.004cf590
add esp, 0x40
push edi
push esi
call fcn.004cf590
push 0
push esi
call fcn.004cf590
mov eax, dword [esi + 4]
xorps xmm0, xmm0
push edi
mov byte [eax], 0
inc dword [esi + 4]
mov eax, dword [esi + 4]
movdqu xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
lea eax, [ebx + 0x3c]
add dword [esi + 4], 0x18
push eax
push esi
call fcn.004e2830
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [edi + 0x10]
push eax
push esi
call fcn.004387b0
add esp, 8
test eax, eax
je 0x4e3113
cmp edi, 0xfffffff3
ja 0x4e3113
lea eax, [edi + 0xc]
push eax
push esi
call fcn.004cf590
push 0
push esi
call fcn.004cf590
push 0
push esi
call fcn.004cf590
push edi
push esi
call fcn.004cf590
push edi
lea eax, [ebx + 0x3c]
push eax
push esi
call fcn.004e2830
add esp, 0x2c
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
push 4
push str.com.freerdp.channels.drive.client
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x4e3113
push dword [ebp + 0xc]
push str.unhandled_FsInformationClass__I32u
push str.drive_file_query_directory
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPchannelsdriveclientdrive_file.c
push 0x360
push 4
push 0
push str.com.freerdp.channels.drive.client
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x20
mov eax, dword [esi + 4]
mov byte [eax], 0
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], 0
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], 0
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], 0
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], 0
inc dword [esi + 4]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret