Function at 0x409e4b
Capabilities:
Enumerate files on windows

Disassembly:
push 0x284
mov eax, 0x4115e8
call fcn.0040f8dd
mov eax, dword [ebp + 8]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x288], ecx
call fcn.00406ed1
pop ecx
mov esi, dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
xor ebx, ebx
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], ebx
call esi
test al, al
je 0x409ea8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
xor eax, eax
inc eax
call fcn.0040f927
ret 4
lea eax, [ebp - 0x26c]
push eax
call fcn.0040ef44
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call esi
test al, al
je 0x409ee5
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call esi
jmp 0x409e9d
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push ecx
lea eax, [ebp - 0x264]
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
call esi
call fcn.00407042
xor edi, edi
inc edi
pop ecx
mov dword [ebp - 0x270], eax
cmp eax, ebx
jne 0x409f35
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call esi
mov eax, edi
jmp 0x409ea0
and dword [ebp - 0x260], 0
push 0x24c
lea eax, [ebp - 0x25c]
push 0
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x268], ebx
push eax
mov ebx, edi
call sub.MSVCR100.dll_memset
push 0x414960
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x278], eax
cmp eax, 0xffffffff
je 0x40a0c0
test ebx, ebx
je 0x40a0a3
test byte [ebp - 0x260], 0x10
je 0x40a089
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x414958
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x40a089
push 0x414954
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x40a089
and dword [ebp - 0x284], 0
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.Common.dll_Ordinal_34]
cmp dword [ebp - 0x284], 0
pop ecx
pop ecx
je 0x40a089
push dword [ebp - 0x274]
inc dword [ebp - 0x268]
push dword [ebp - 0x268]
lea eax, [ebp - 0x234]
push dword [ebp - 0x270]
push eax
push ecx
lea eax, [ebp - 0x26c]
mov ecx, esp
mov dword [ebp - 0x290], esp
push eax
call esi
push ecx
lea eax, [ebp - 0x264]
mov ecx, esp
mov dword [ebp - 0x28c], esp
push eax
mov byte [ebp - 4], 3
call esi
mov ecx, dword [ebp - 0x288]
mov byte [ebp - 4], 2
call fcn.00408baf
mov edi, eax
cmp edi, 0xffffffff
je 0x40a0a3
cmp edi, 0xfffffffd
je 0x40a0a3
cmp edi, 3
je 0x40a0a3
cmp edi, 2
jne 0x40a089
mov dword [ebp - 0x280], 1
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
jmp 0x409fa6
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 1
jne 0x40a0c0
cmp dword [ebp - 0x280], 0
je 0x40a0c0
push 2
pop edi
mov ecx, dword [ebp - 0x274]
test ecx, ecx
je 0x40a0e3
mov eax, dword [ecx]
push 0
push 0x64
push 0x64
push dword [ebp - 0x268]
push dword [ebp - 0x270]
push edi
push 4
call dword [eax]
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x409f10