Function at 0x4596d0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x464e18
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
mov ebx, dword [esp + 0x18c]
push esi
xor esi, esi
cmp ebx, esi
push edi
je 0x459901
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x459901
mov al, byte [esp + 0xf]
push ebp
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], esi
mov byte [esp + 0x2c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
mov dword [esp + 0x194], esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x28]
mov byte [esp + 0x190], 1
push edx
push esi
call fcn.00458d50
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 8
test eax, eax
je 0x4597fb
lea eax, [esp + 0x28]
push 0x478634
lea ecx, [esp + 0x3c]
push eax
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
mov eax, dword [eax + 4]
add esp, 0xc
cmp eax, esi
jne 0x459790
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x48]
push edx
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4597bf
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4597b6
cmp al, 0xff
je 0x4597b6
dec al
mov byte [ecx], al
jmp 0x4597bf
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp esi, 0xffffffff
je 0x4597fb
lea eax, [esp + 0x74]
push ebx
push eax
call ebp
test eax, eax
jne 0x4597ec
lea ecx, [esp + 0x48]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4597f4
lea edx, [esp + 0x74]
push ebx
push edx
call ebp
test eax, eax
je 0x4597d0
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x18]
push eax
push 0x19
call fcn.00458d50
add esp, 8
test eax, eax
je 0x4598a0
lea ecx, [esp + 0x18]
push 0x478634
lea edx, [esp + 0x3c]
push ecx
push edx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
mov eax, dword [eax + 4]
add esp, 0xc
test eax, eax
jne 0x459835
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x48]
push ecx
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x459864
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x45985b
cmp al, 0xff
je 0x45985b
dec al
mov byte [ecx], al
jmp 0x459864
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp esi, 0xffffffff
je 0x4598a0
lea edx, [esp + 0x74]
push ebx
push edx
call ebp
test eax, eax
jne 0x459891
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x459899
lea ecx, [esp + 0x74]
push ebx
push ecx
call ebp
test eax, eax
je 0x459875
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1c]
xor esi, esi
cmp ecx, esi
pop ebp
je 0x4598c7
mov al, byte [ecx - 1]
test al, al
je 0x4598bd
cmp al, 0xff
je 0x4598bd
dec al
mov byte [ecx - 1], al
jmp 0x4598c7
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], esi
cmp ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x4598fb
mov al, byte [ecx - 1]
test al, al
je 0x4598f1
cmp al, 0xff
je 0x4598f1
dec al
mov byte [ecx - 1], al
mov eax, dword [esp + 0x10]
jmp 0x459903
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
jmp 0x459903
xor eax, eax
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x184
ret