Function at 0x646044cb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac8
mov eax, dword [0x646170a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x646173f8]
push ebx
push esi
push edi
mov ebx, 0x208
mov dword [ebp - 0xab8], eax
push ebx
xor esi, esi
lea eax, [ebp - 0x24c]
push esi
push eax
mov edi, edx
mov dword [ebp - 0xac0], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x454]
push ebx
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x864]
push ebx
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460455e
test dword [eax + 0x1c], 0x200
je 0x6460455e
cmp byte [eax + 0x19], 4
jb 0x6460455e
push dword [eax + 0x14]
mov edx, 0x646014b8
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.64604423
test edi, edi
je 0x64604a7e
cmp word [edi], si
je 0x64604a7e
mov esi, edi
xor edx, edx
push 2
pop ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, ebx
cmp ax, dx
jne 0x64604579
sub esi, ecx
sar esi, 1
cmp esi, 0xff
jge 0x64604a7e
push edi
mov edx, 0x104
lea ecx, [ebp - 0x24c]
call fcn.646042a0
test eax, eax
jns 0x646045ee
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64604a7e
test dword [ecx + 0x1c], 0x200
je 0x64604a7e
cmp byte [ecx + 0x19], bl
jb 0x64604a7e
push eax
push 0x646012fc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xb
mov edx, 0x646014b8
pop ecx
call fcn.64604465
jmp 0x64604a7e
lea eax, [ebp - 0x24c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
xor edi, edi
pop ecx
test eax, eax
je 0x6460460b
cmp word [eax + 2], di
je 0x6460465e
push 0x64601318
mov edx, 0x104
lea ecx, [ebp - 0x24c]
call fcn.646042d5
test eax, eax
jns 0x6460465c
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64604a7e
test dword [ecx + 0x1c], 0x200
je 0x64604a7e
cmp byte [ecx + 0x19], bl
jb 0x64604a7e
push eax
push 0x6460131c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xc
jmp 0x646045de
add esi, ebx
lea eax, [ebp - 0x24c]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x864]
call fcn.646042a0
test eax, eax
jns 0x646046b4
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64604a7e
test dword [ecx + 0x1c], 0x200
je 0x64604a7e
cmp byte [ecx + 0x19], bl
jb 0x64604a7e
push eax
push 0x646012fc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xd
jmp 0x646045de
lea eax, [ebp - 0x864]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
push 0x208
mov dword [ebp - 0xabc], eax
lea eax, [ebp - 0x65c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x14
lea eax, [ebp - 0x24c]
mov edi, 0x104
lea ecx, [ebp - 0x65c]
mov edx, edi
push eax
call fcn.646042a0
test eax, eax
jns 0x64604735
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64604a7e
test dword [ecx + 0x1c], 0x200
je 0x64604a7e
cmp byte [ecx + 0x19], bl
jb 0x64604a7e
push eax
push 0x646012fc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xe
jmp 0x646045de
push 0x64601338
mov edx, edi
lea ecx, [ebp - 0x65c]
call fcn.646042d5
test eax, eax
jns 0x64604786
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64604a7e
test dword [ecx + 0x1c], 0x200
je 0x64604a7e
cmp byte [ecx + 0x19], bl
jb 0x64604a7e
push eax
push 0x6460131c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xf
jmp 0x646045de
lea eax, [ebp - 0xab4]
push eax
lea eax, [ebp - 0x65c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x646047e6
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64604a7e
test dword [eax + 0x1c], 0x200
je 0x64604a7e
cmp byte [eax + 0x19], 2
jb 0x64604a7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push 0x64601344
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
jmp 0x646045de
xor edi, edi
mov eax, 0x104
inc edi
sub eax, esi
mov dword [ebp - 0xac4], eax
lea ecx, [ebp - 0xa88]
mov edx, eax
push ecx
mov ecx, dword [ebp - 0xabc]
call fcn.646042a0
test eax, eax
jns 0x64604855
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64604a19
test dword [ecx + 0x1c], 0x200
je 0x64604a19
cmp byte [ecx + 0x19], 2
jb 0x64604a19
push eax
push 0x646012fc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x11
mov edx, 0x646014b8
pop ecx
call fcn.64604465
jmp 0x64604a19
lea ecx, [ebp - 0x864]
call fcn.64622ec7
test eax, eax
je 0x64604a19
test byte [ebp - 0xab4], 0x12
jne 0x64604a2d
lea ecx, [ebp - 0xa88]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xac0]
jne 0x6460487e
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jle 0x64604a2d
lea eax, [ecx + esi]
mov ecx, 0x104
cmp eax, ecx
jge 0x64604a2d
lea eax, [ebp - 0xa88]
mov edx, ecx
push eax
lea ecx, [ebp - 0x454]
call fcn.646042a0
test eax, eax
jns 0x646048fe
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64604a19
test dword [ecx + 0x1c], 0x200
je 0x64604a19
cmp byte [ecx + 0x19], 2
jb 0x64604a19
push eax
push 0x646012fc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x12
jmp 0x64604845
lea eax, [ebp - 0x454]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x64604918
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x646049df
push 0x1d
lea eax, [ebp - 0x44]
push eax
push 0x42e
push dword [0x64617400]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x64604942
mov word [ebp - 0x44], ax
push 0x64601360
mov edx, 0x104
lea ecx, [ebp - 0x454]
call fcn.646042d5
test eax, eax
jns 0x64604997
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64604a19
test dword [ecx + 0x1c], 0x200
je 0x64604a19
cmp byte [ecx + 0x19], 2
jb 0x64604a19
push eax
push 0x646012fc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x13
jmp 0x64604845
lea eax, [ebp - 0x44]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x454]
call fcn.646042d5
test eax, eax
jns 0x646049df
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64604a19
test dword [ecx + 0x1c], 0x200
je 0x64604a19
cmp byte [ecx + 0x19], 2
jb 0x64604a19
push eax
push 0x6460131c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x14
jmp 0x64604845
lea eax, [ebp - 0x454]
push eax
xor eax, eax
push eax
push 0x180
push dword [ebp - 0xab8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x64604a19
xor ecx, ecx
test edi, edi
setne cl
push ecx
push eax
push 0x19a
push dword [ebp - 0xab8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0xab4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
je 0x64604a3d
mov eax, dword [ebp - 0xac4]
test edi, edi
jne 0x646047f6
jmp 0x64604a77
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64604a77
test dword [eax + 0x1c], 0x200
je 0x64604a77
cmp byte [eax + 0x19], 5
jb 0x64604a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x646014b8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x15
pop ecx
call fcn.64604441
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64615f50
mov esp, ebp
pop ebp
ret 4