Function at 0x40ce20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dd24
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x43e028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x2bc], esi
push 8
mov byte [ebp - 4], 2
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
cmp eax, esi
je 0x40d1e2
mov dword [ebp - 0x2bc], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2bc]
mov dword [edx], ecx
mov dword [ebp - 0x2b8], esi
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2ac], esi
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x38]
cmp eax, esi
je 0x40cee4
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x40ced1
push str.invalid_string_position
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xout_of_range_char_const__]
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x40cedd
lea eax, [ebp + 0x28]
cmp word [eax + ecx*2], 0x5c
je 0x40cef3
push 1
mov eax, 0x432b50
lea ecx, [ebp + 0x28]
call fcn.0040b480
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], ax
lea ecx, [ebp + 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ebx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.004100d0
add esp, 8
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00408940
mov ebx, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x38], ebx
jb 0x40cf43
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor esi, esi
push 0x24c
lea ecx, [ebp - 0x298]
push esi
push ecx
mov dword [ebp - 0x29c], esi
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp - 0x1c], ebx
jae 0x40cf6b
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x29c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2cc], eax
cmp eax, 0xffffffff
jne 0x40d030
mov eax, dword [ebp - 0x2a0]
push eax
lea edi, [ebp - 0x2bc]
call fcn.0040ed40
cmp dword [ebp - 0x1c], ebx
jb 0x40cfac
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov dword [ebp - 0x20], esi
xor edx, edx
lea esi, [ebp - 0x2bc]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], dx
call fcn.0040fba0
mov eax, dword [ebp - 0x2bc]
mov esi, dword [sym.imp.mfc100u.dll_delete]
push eax
call esi
xor edi, edi
add esp, 4
mov dword [ebp - 0x2bc], edi
cmp dword [ebp + 0x20], ebx
jb 0x40cfef
mov ecx, dword [ebp + 0xc]
push ecx
call esi
add esp, 4
xor edx, edx
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], edi
mov word [ebp + 0xc], dx
cmp dword [ebp + 0x3c], ebx
jb 0x40d00d
mov eax, dword [ebp + 0x28]
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042b0b1
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x29c], 0x10
jne 0x40d0fe
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp + 0x28]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.0040c170
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2ac]
mov eax, dword [ebp - 0x2b4]
inc ecx
cmp eax, ecx
ja 0x40d07c
lea ebx, [ebp - 0x2bc]
call fcn.0040fa10
mov eax, dword [ebp - 0x2b4]
mov esi, dword [ebp - 0x2ac]
add esi, dword [ebp - 0x2b0]
cmp eax, esi
ja 0x40d08e
sub esi, eax
mov edx, dword [ebp - 0x2b8]
cmp dword [edx + esi*4], 0
jne 0x40d0b6
push 0x1c
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
test eax, eax
je 0x40d1aa
mov ecx, dword [ebp - 0x2b8]
mov dword [ecx + esi*4], eax
mov edx, dword [ebp - 0x2b8]
mov esi, dword [edx + esi*4]
mov ebx, 7
mov byte [ebp - 4], bl
test esi, esi
je 0x40d0df
xor eax, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.00408940
inc dword [ebp - 0x2ac]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x38], 8
jb 0x40d103
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
jmp 0x40d103
mov ebx, 7
mov esi, dword [ebp - 0x2cc]
lea edx, [ebp - 0x29c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d030
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x2a0]
push edx
lea edi, [ebp - 0x2bc]
call fcn.0040ed40
cmp dword [ebp - 0x1c], 8
jb 0x40d14b
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor ecx, ecx
xor edi, edi
lea esi, [ebp - 0x2bc]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
call fcn.0040fba0
mov edx, dword [ebp - 0x2bc]
mov esi, dword [sym.imp.mfc100u.dll_delete]
push edx
call esi
add esp, 4
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x2bc], edi
jb 0x40d18b
mov eax, dword [ebp + 0xc]
push eax
call esi
add esp, 4
xor ecx, ecx
cmp dword [ebp + 0x3c], 8
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x1c], edi
mov word [ebp + 0xc], cx
jb 0x40d00d
mov edx, dword [ebp + 0x28]
push edx
jmp 0x40d008
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2a4], 0
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x436e7c
lea ecx, [ebp - 0x2c8]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2a4], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x436e7c
lea ecx, [ebp - 0x2c8]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3