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.005b9bd7
test al, al
jne 0x58a034
push 0x4245b4
lea eax, [ebp - 0x4f8]
push 0x22
push eax
call fcn.005b9bd7
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.005b9bd7
mov ecx, esi
call fcn.005b9bd7
lea ecx, [ebp - 0x2b8]
call fcn.005761e7
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x2b8]
call fcn.005b9bd7
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.005b9bd7
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.005b9bd7
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0
call fcn.00576231
push dword [ebp - 0x264]
lea ecx, [ebp - 0x2b8]
call fcn.005b9bd7
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.005b9bd7
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.005b9bd7
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.005b9bd7
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.005b9bd7
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.00576231
lea eax, [ebp - 0x2e0]
push eax
call fcn.005b9bd7
test al, al
je 0x58a225
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x2e0]
push eax
call fcn.005b9bd7
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