Function at 0x402700
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4049eb
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x408040]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x150]
push eax
push 0x405374
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x154], esi
cmp esi, 0xffffffff
je 0x40299d
nop word [eax + eax]
push 1
push 0x40
push 0x21
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401290
push 2
push 0
push 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
push 0
push 0
push 0
mov ebx, dword [eax + 8]
add ebx, dword [eax]
mov ecx, dword [eax + 0xc]
adc ecx, dword [eax + 4]
mov dword [ebp - 0x160], ecx
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
mov eax, ebx
mov dword [0x408428], ecx
cdq
mov edi, eax
mov eax, edx
push eax
push edi
push ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x15c], eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0x20c]
call fcn.00401b20
test eax, eax
jne 0x402823
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov edi, dword [0x408428]
mov dword [0x408834], 0
test ebx, ebx
jle 0x40287a
xor eax, eax
xor edx, edx
xor esi, esi
xor ecx, ecx
nop
cmp byte [ecx + edi], 0x2a
jne 0x402858
cmp byte [ecx + edi + 1], 0x42
mov eax, edx
jne 0x402858
cmp byte [ecx + edi + 2], 0x2a
mov eax, esi
je 0x40286a
inc eax
mov ecx, eax
mov dword [0x408834], eax
mov edx, eax
mov esi, eax
cmp ecx, ebx
jl 0x402840
jmp 0x402874
mov dword [0x40842c], 0x534559
mov esi, dword [ebp - 0x154]
mov ecx, 0x405368
mov eax, 0x40842c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4028a4
test dl, dl
je 0x4028a0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4028a4
add eax, 2
add ecx, 2
test dl, dl
jne 0x402884
xor eax, eax
jmp 0x4028a9
sbb eax, eax
or eax, 1
test eax, eax
je 0x402964
push 1
push 0x40
push 0x22
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.004013a0
push 0
push 0x717c2
push dword [ebp - 0x158]
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 1
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__::write_char_const___long_long___int64__]
mov ecx, 0x408414
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4028f0
sub ecx, edx
push 0
push ecx
push 0x408414
lea ecx, [ebp - 0x2cc]
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__::write_char_const___long_long___int64__]
push dword [ebp - 0x15c]
lea ecx, [ebp - 0x2cc]
push dword [ebp - 0x160]
push dword [0x408428]
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__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0x2c8]
call fcn.00401b20
test eax, eax
jne 0x402953
mov eax, dword [ebp - 0x2cc]
lea ecx, [ebp - 0x2cc]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x2cc]
call fcn.004017d0
mov edi, dword [0x408428]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00401710
lea eax, [ebp - 0x150]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402760
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
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.00403a86
mov esp, ebp
pop ebp
ret