Function at 0x405180
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422204
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x42e028]
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 0x405542
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 0x405244
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x405231
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 0x40523d
lea eax, [ebp + 0x28]
cmp word [eax + ecx*2], 0x5c
je 0x405253
push 1
mov eax, 0x424760
lea ecx, [ebp + 0x28]
call fcn.00408650
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.00408b70
add esp, 8
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00407c10
mov ebx, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x38], ebx
jb 0x4052a3
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 0x4052cb
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 0x405390
mov eax, dword [ebp - 0x2a0]
push eax
lea edi, [ebp - 0x2bc]
call fcn.00407110
cmp dword [ebp - 0x1c], ebx
jb 0x40530c
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.004080a0
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 0x40534f
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 0x40536d
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.0041f822
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x29c], 0x10
jne 0x40545e
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp + 0x28]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.00408c20
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 0x4053dc
lea ebx, [ebp - 0x2bc]
call fcn.00407f10
mov eax, dword [ebp - 0x2b4]
mov esi, dword [ebp - 0x2ac]
add esi, dword [ebp - 0x2b0]
cmp eax, esi
ja 0x4053ee
sub esi, eax
mov edx, dword [ebp - 0x2b8]
cmp dword [edx + esi*4], 0
jne 0x405416
push 0x1c
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
test eax, eax
je 0x40550a
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 0x40543f
xor eax, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.00407c10
inc dword [ebp - 0x2ac]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x38], 8
jb 0x405463
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
jmp 0x405463
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 0x405390
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x2a0]
push edx
lea edi, [ebp - 0x2bc]
call fcn.00407110
cmp dword [ebp - 0x1c], 8
jb 0x4054ab
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.004080a0
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 0x4054eb
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 0x40536d
mov edx, dword [ebp + 0x28]
push edx
jmp 0x405368
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 0x427a38
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 0x427a38
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