Function at 0x4cd710
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d795c
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x645624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2ec], eax
call fcn.004ce990
mov dword [ebp - 0x2e4], eax
test eax, eax
jne 0x4cdca9
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x2e0], edi
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 4], ebx
push 8
mov dword [ebp - 0x2d4], ebx
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 0x2c4], ebx
call fcn.0057b695
add esp, 4
mov dword [ebp - 0x2d4], eax
test eax, eax
je 0x4cd7b0
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x2d4]
mov dword [eax], ecx
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x58], al
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.004ca570
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0049bd40
mov esi, eax
add esp, 4
test esi, esi
jne 0x4cd818
push str.Calloc_failure__Failed_to_convert_string_to_utf16.
push 4
call fcn.004c6e10
add esp, 8
mov esi, 3
jmp 0x4cdbf8
push esi
lea ecx, [ebp - 0x28]
call fcn.00467340
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2d4]
call fcn.004ce590
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4cd84d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004688c0
push esi
call fcn.00593b50
add esp, 4
xor edx, edx
push dword [ebp - 0x2e8]
push ecx
xor ecx, ecx
call fcn.00471460
xor ebx, ebx
add esp, 8
mov dword [ebp - 0x2dc], ebx
cmp dword [ebp - 0x2c4], ebx
je 0x4cdb34
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
push 1
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.004ce790
mov ecx, eax
call fcn.004ce610
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4cd8bc
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0x60a774
push dword [eax + ecx*4]
lea eax, [ebp - 0x70]
push eax
call fcn.004708e0
push 0x60a778
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.004709f0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x4cd928
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4cd90b
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004688c0
xor eax, eax
mov dword [ebp - 0x2c], 7
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.004706f0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4cd93d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004688c0
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x4cd96a
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004688c0
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0x2c8]
dec eax
mov edx, dword [ebp - 0x2cc]
add ecx, eax
mov eax, dword [ebp - 0x2d0]
dec edx
and edx, ecx
mov esi, dword [eax + edx*4]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4cd99e
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004688c0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4cd9b4
mov esi, dword [esi]
xor eax, eax
mov ecx, 0
mov word [esi], ax
sub dword [ebp - 0x2c4], 1
mov eax, dword [ebp - 0x2c8]
cmove eax, ecx
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x2c8], eax
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4cdb5c
nop dword [eax + eax]
mov edx, 0x60efa8
lea ecx, [ebp - 0x294]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4cda36
test ax, ax
je 0x4cda32
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4cda36
add ecx, 4
add edx, 4
test ax, ax
jne 0x4cda10
xor eax, eax
jmp 0x4cda3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4cdafb
mov ecx, 0x60f110
lea eax, [ebp - 0x294]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4cda76
test dx, dx
je 0x4cda72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4cda76
add eax, 4
add ecx, 4
test dx, dx
jne 0x4cda50
xor eax, eax
jmp 0x4cda7b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4cdafb
test byte [ebp - 0x2c0], 0x10
jne 0x4cdafb
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x294], ax
je 0x4cdabf
lea eax, [ebp - 0x294]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cdab0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x28]
call fcn.00467810
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x2e0]
call fcn.004703e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4cdafb
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004688c0
lea eax, [ebp - 0x2c0]
push eax
push esi
call edi
test eax, eax
jne 0x4cda00
call ebx
push esi
cmp eax, 0x12
jne 0x4cdb4a
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x2c4], 0
jne 0x4cd890
mov ebx, dword [ebp - 0x2dc]
mov edi, dword [ebp - 0x2e0]
mov esi, edi
cmp edi, ebx
je 0x4cdbf2
nop
cmp dword [esi + 0x14], 8
jb 0x4cdb81
mov eax, dword [esi]
jmp 0x4cdb83
call dword [sym.imp.KERNEL32.dll_FindClose]
call ebx
push eax
push str.ERROR:Error_while_iterating_through_slstore:_error_code__d
push 2
jmp 0x4cdb66
call ebx
push eax
push str.Error_while_iterating_through_slstore:_error_code__d.
push 4
call fcn.004c6e10
mov ebx, dword [ebp - 0x2dc]
add esp, 0xc
mov edi, dword [ebp - 0x2e0]
mov esi, 0x31c
jmp 0x4cdbf8
mov eax, esi
push eax
call fcn.0049bda0
mov edi, eax
add esp, 4
test edi, edi
je 0x4cdbd2
push edi
lea ecx, [ebp - 0x28]
call fcn.0045e830
mov ecx, dword [ebp - 0x2ec]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 8
call fcn.004795c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4cdbc7
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00459720
push edi
call fcn.00593b50
add esp, 4
jmp 0x4cdbe1
push str.Failed_to_convert_utf16_to_utf8.
push 4
call fcn.004c6e10
add esp, 8
add esi, 0x18
cmp esi, ebx
jne 0x4cdb40
mov edi, dword [ebp - 0x2e0]
mov esi, dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x4cdc0d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00459720
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 8
jb 0x4cdc34
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004688c0
xor eax, eax
mov dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.004ce4e0
push 1
push dword [ebp - 0x2d4]
call fcn.004881e0
mov dword [ebp - 0x2d4], 0
test edi, edi
je 0x4cdca7
push dword [ebp - 0x2e8]
mov edx, ebx
push ecx
mov ecx, edi
call fcn.00471460
mov ecx, dword [ebp - 0x2d8]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 8
imul ecx
lea ecx, [ebp - 0x2e0]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.0046e4f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 4