Function at 0x589fd2
Capabilities:
Enumerate files on windows

Disassembly:
push 0x4ec
mov eax, 0x6b89f2
call fcn.0066d8f7
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], eax
call fcn.00589ee2
test al, al
jne 0x58a034
push 0x4245b4
lea eax, [ebp - 0x4f8]
push 0x22
push eax
call fcn.00520b6e
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x6c2560
lea eax, [ebp - 0x3ec]
lea edi, [ebp - 0x3ec]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0066dd58
mov ecx, esi
call fcn.00536636
lea ecx, [ebp - 0x2b8]
call fcn.005761e7
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00576fc1
mov esi, 0x402e78
push esi
lea ecx, [ebp - 0x290]
call fcn.0057706c
push 1
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00577a78
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x290]
inc bl
mov byte [ebp - 4], 0
call fcn.00576231
test bl, bl
je 0x58a0bb
push esi
lea ecx, [ebp - 0x290]
call fcn.0057706c
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 2
call fcn.00576c0d
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0
call fcn.00576231
push dword [ebp - 0x264]
lea ecx, [ebp - 0x2b8]
call fcn.00576c0d
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x2b8]
call sym.osetup.dll_public:_struct_FlexUI::IDataSource____thiscall_FlexUI::FlexValue::GetDataSource_void_const
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x264], eax
jne 0x58a11f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x58a25b
cmp eax, 2
je 0x58a25b
push 0x42459c
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.005287fb
jmp 0x58a013
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x412594
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x58a234
push 0x424594
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x58a234
mov ecx, edi
call sym.osetup.dll_public:_struct_FlexUI::IDataSource____thiscall_FlexUI::FlexValue::GetDataSource_void_const
push eax
lea ecx, [ebp - 0x2e0]
call fcn.0057706c
push esi
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.0057706c
push 1
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 4
call fcn.00577a78
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x290]
inc bl
mov byte [ebp - 4], 3
call fcn.00576231
test bl, bl
je 0x58a1cc
push esi
lea ecx, [ebp - 0x290]
call fcn.0057706c
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 5
call fcn.00576c0d
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.00576231
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x290]
call fcn.0057706c
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 6
call fcn.00576c0d
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.00576231
lea eax, [ebp - 0x2e0]
push eax
call fcn.00589ee2
test al, al
je 0x58a225
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x2e0]
push eax
call fcn.00524d25
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 0
call fcn.00576231
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x58a11f
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b8]
call fcn.00576231
call fcn.0066d97a
ret 0xc