Function at 0x402590
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409ffd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x198
mov eax, dword [0x40f004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ecx + 0x10]
mov eax, 0x7fffffff
sub eax, edx
cmp eax, 6
jb 0x40285d
cmp dword [ecx + 0x14], 0x10
jb 0x4025ec
mov ecx, dword [ecx]
push 6
push 0x40b4ac
push edx
push ecx
push ecx
push dword [ebp - 0x1a4]
lea ecx, [ebp - 0x5c]
call fcn.004080d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
push ecx
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40264d
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.No_Modules_found
call fcn.00407610
push 0x407830
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x402809
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402670
sub ecx, edx
lea eax, [ebp - 0x174]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407960
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 4]
cmp eax, ecx
jb 0x402862
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + ecx], 0
cmp dword [ebp - 0x18], 0x10
push dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004083d0
add esp, 4
mov ecx, eax
push 0x407830
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x1a0]
push eax
push esi
call edi
test eax, eax
je 0x4027c0
nop
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x174]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402710
sub eax, edx
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00407960
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
lea ecx, [eax - 4]
cmp eax, ecx
jb 0x402862
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov byte [eax + ecx], 0
cmp dword [ebp - 0x30], 0x10
push dword [ebp - 0x34]
cmovae edx, dword [ebp - 0x44]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004083d0
add esp, 4
mov ecx, eax
push 0x407830
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x4027ae
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4027a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40282f
push ecx
push edx
call fcn.00409084
add esp, 8
lea eax, [ebp - 0x1a0]
push eax
push esi
call edi
test eax, eax
jne 0x4026f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x4027f7
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4027ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40282f
push ecx
push edx
call fcn.00409084
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x40283f
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402835
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402835
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00409084
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409041
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401170
call fcn.00407490
int3