Function at 0x53e9b0
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5875d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28c
push ebx
push esi
mov esi, dword [esp + 0x2a4]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x10], edi
je 0x53ead7
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call ebx
add esp, 4
test eax, eax
je 0x53ead7
mov al, byte [esp + 0xf]
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push esi
call ebx
add esp, 4
lea ecx, [esp + 0x14]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a0], edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Freeze_void_]
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x53ea39
xor eax, eax
jmp 0x53ea40
mov ecx, dword [esp + 0x1c]
lea eax, [eax + ecx*2]
cmp word [eax - 2], 0x5c
je 0x53ea61
push 0x5d3fdc
call ebx
add esp, 4
lea ecx, [esp + 0x14]
push eax
push 0x5d3fdc
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
push 0x5e26fc
call ebx
add esp, 4
lea ecx, [esp + 0x14]
push eax
push 0x5e26fc
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
mov dl, byte [esp + 0xf]
mov dword [esp + 0x3c], edi
mov byte [esp + 0x38], dl
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x18]
mov byte [esp + 0x2a0], 1
cmp eax, edi
jne 0x53eaa4
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x24], esi
jne 0x53eaf3
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a0], esi
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
xor eax, eax
mov ecx, dword [esp + 0x298]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x298
ret 0x10
mov edi, dword [esp + 0x2b4]
push ebp
mov ebp, dword [esp + 0x2b4]
cmp word [esp + 0x78], 0x2e
je 0x53ebd7
test byte [esp + 0x4c], 0x10
jne 0x53ebd7
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test ebp, ebp
jne 0x53eb2f
test eax, eax
sete al
jmp 0x53eb45
test eax, eax
je 0x53eb43
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x53eb43
mov al, 1
jmp 0x53eb45
xor al, al
test al, al
je 0x53ebd7
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea ecx, [esp + 0x78]
push ecx
call ebx
add esp, 4
mov esi, eax
lea ecx, [esp + 0x2c]
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x53eb9c
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x78]
push esi
push edx
push eax
call fcn.00470a70
add esp, 0xc
lea ecx, [esp + 0x2c]
push esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Eos_unsigned_int_]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x2c]
push ecx
push 1
push eax
mov ecx, edi
mov byte [esp + 0x2b0], 3
call fcn.00473fa0
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x2a8], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
inc eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x4c]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x53eb02
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x20]
add esp, 4
test ecx, ecx
pop ebp
je 0x53ec2a
mov al, byte [ecx - 1]
test al, al
je 0x53ec1e
cmp al, 0xff
je 0x53ec1e
dec al
mov byte [ecx - 1], al
mov eax, dword [esp + 0x10]
jmp 0x53ead9
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
jmp 0x53ead9