Function at 0x40c3e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x41e130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x284], ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x264]
push eax
call fcn.00408620
add esp, 4
mov esi, dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
xor edi, edi
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], edi
call esi
test al, al
je 0x40c457
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
xor eax, eax
jmp 0x40c773
lea ecx, [ebp - 0x268]
push ecx
call fcn.004121d0
add esp, 4
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call esi
test al, al
je 0x40c49e
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0
call esi
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0xffffffff
call esi
xor eax, eax
jmp 0x40c773
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push ecx
lea edx, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x270], esp
push edx
call esi
call fcn.00412080
add esp, 4
cmp eax, edi
jne 0x40c4ed
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0
call esi
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0xffffffff
call esi
mov eax, 0xfffffffd
jmp 0x40c773
push ecx
lea eax, [ebp - 0x264]
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
call esi
call fcn.00408820
add esp, 4
cmp eax, edi
mov dword [ebp - 0x270], eax
jne 0x40c53c
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0
call esi
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0xffffffff
call esi
mov eax, 1
jmp 0x40c773
push 0x24c
lea ecx, [ebp - 0x25c]
push 0
mov esi, 1
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x26c], edi
push ecx
mov edi, esi
mov dword [ebp - 0x260], 0
call sub.MSVCR80.dll_memset
push 0x417bdc
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0x18
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x278]
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]
cmp eax, 0xffffffff
mov dword [ebp - 0x280], eax
je 0x40c721
test edi, edi
je 0x40c6fc
test byte [ebp - 0x260], 0x10
je 0x40c69c
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x417bd4
lea edx, [ebp - 0x234]
push edx
call edi
test eax, eax
je 0x40c6a3
push 0x417bd0
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x40c6a3
lea ecx, [ebp - 0x234]
push ecx
push 0x417f00
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x40c69c
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x27c], 0
call dword [sym.imp.Common.dll_Ordinal_34]
add esp, 8
cmp dword [ebp - 0x27c], 0
je 0x40c69c
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
lea ecx, [ebp - 0x234]
push ecx
push ecx
lea edx, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x28c], esp
push edx
call esi
push ecx
lea eax, [ebp - 0x264]
mov ecx, esp
mov dword [ebp - 0x288], esp
push eax
mov byte [ebp - 4], 3
call esi
mov byte [ebp - 4], 2
call fcn.0040afe0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40c6fc
cmp esi, 0xfffffffd
je 0x40c6fc
cmp esi, 2
jne 0x40c69c
mov dword [ebp - 0x274], 1
add dword [ebp - 0x26c], 1
mov edi, dword [ebp - 0x284]
cmp dword [edi + 0x48], 0
je 0x40c6be
nop
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x48], 0
jne 0x40c6b0
test ebx, ebx
je 0x40c6e1
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x270]
mov edx, dword [ebx]
mov edx, dword [edx]
push 0
push 1
push 1
push eax
push ecx
push esi
push 3
mov ecx, ebx
call edx
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
jmp 0x40c5b5
mov edx, dword [ebp - 0x280]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x40c721
cmp esi, 0xfffffffd
je 0x40c721
cmp dword [ebp - 0x274], 0
je 0x40c721
mov esi, 2
test ebx, ebx
je 0x40c744
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x270]
mov eax, dword [ebx]
mov eax, dword [eax]
push 0
push 1
push 1
push ecx
push edx
push esi
push 3
mov ecx, ebx
call eax
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0
call edi
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0xffffffff
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412d02
mov esp, ebp
pop ebp
ret 4