Function at 0x40a0f8
Capabilities:
Enumerate files on windows

Disassembly:
push 0x280
mov eax, 0x411640
call fcn.0040f8dd
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x268]
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]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
call esi
test al, al
je 0x40a14d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
xor eax, 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 0x40a18e
xor esi, esi
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call edi
mov eax, esi
jmp 0x40a145
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push ecx
lea eax, [ebp - 0x26c]
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
call edi
call fcn.0040ee57
pop ecx
test eax, eax
jne 0x40a1b5
push 0xfffffffffffffffd
pop esi
jmp 0x40a16c
push ecx
lea eax, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
call edi
call fcn.00407042
xor esi, esi
inc esi
pop ecx
mov dword [ebp - 0x270], eax
test eax, eax
je 0x40a16c
xor eax, eax
push 0x24c
push eax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x25c]
push eax
mov dword [ebp - 0x274], esi
call sub.MSVCR100.dll_memset
push 0x414960
lea eax, [ebp - 0x268]
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 0x40a39f
cmp dword [ebp - 0x274], 0
je 0x40a37d
test byte [ebp - 0x260], 0x10
je 0x40a32f
push 0x414958
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40a335
push 0x414954
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40a335
lea eax, [ebp - 0x234]
push eax
push 0x414c80
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x40a32f
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 0x40a32f
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp - 0x26c]
mov ecx, esp
mov dword [ebp - 0x274], esp
push eax
call edi
push ecx
lea eax, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x28c], esp
push eax
mov byte [ebp - 4], 3
call edi
mov byte [ebp - 4], 2
call fcn.00408fab
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40a37d
cmp esi, 0xfffffffd
je 0x40a37d
cmp esi, 2
jne 0x40a32f
mov dword [ebp - 0x280], 1
inc dword [ebp - 0x264]
mov ecx, dword [ebp - 0x288]
call fcn.004073e8
test ebx, ebx
je 0x40a35f
mov eax, dword [ebx]
push 0
push 1
push 1
push dword [ebp - 0x264]
mov ecx, ebx
push dword [ebp - 0x270]
push esi
push 3
call dword [eax]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x274], eax
jmp 0x40a24f
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x40a39f
cmp esi, 0xfffffffd
je 0x40a39f
cmp dword [ebp - 0x280], 0
je 0x40a39f
push 2
pop esi
test ebx, ebx
je 0x40a3be
mov eax, dword [ebx]
push 0
push 1
push 1
push dword [ebp - 0x264]
mov ecx, ebx
push dword [ebp - 0x270]
push esi
push 3
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 0x40a16c