Function at 0x52f210
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x57073f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
push ebx
push esi
mov esi, dword [esp + 0x2b4]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [esp + 0x10], ebx
je 0x52f33e
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call edi
add esp, 4
test eax, eax
je 0x52f33e
mov al, byte [esp + 0xf]
push ebx
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 edi
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 + 0x2b0], ebx
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, ebx
jne 0x52f299
xor eax, eax
jmp 0x52f2a0
mov ecx, dword [esp + 0x1c]
lea eax, [eax + ecx*2]
cmp word [eax - 2], 0x5c
je 0x52f2c1
push 0x5b9a5c
call edi
add esp, 4
lea ecx, [esp + 0x14]
push eax
push 0x5b9a5c
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 0x5c7d0c
call edi
add esp, 4
lea ecx, [esp + 0x14]
push eax
push 0x5c7d0c
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 + 0x4c], ebx
mov byte [esp + 0x48], dl
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x2b0], 1
cmp eax, ebx
mov byte [esp + 0xf], 0
jne 0x52f309
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 + 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x52f35a
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2b0], 0xffffffff
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 + 0x2a8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a8
ret 0x10
push ebp
mov ebp, dword [esp + 0x2c4]
jmp 0x52f366
xor ebx, ebx
cmp word [esp + 0x88], 0x2e
je 0x52f4fc
test byte [esp + 0x5c], 0x10
jne 0x52f4fc
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp ebp, ebx
jne 0x52f399
cmp eax, ebx
sete bl
jmp 0x52f3af
cmp eax, ebx
je 0x52f3ad
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x52f3ad
mov bl, 1
jmp 0x52f3af
xor bl, bl
mov al, byte [esp + 0x13]
test al, al
jne 0x52f468
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_]
mov ecx, dword [esp + 0x2c0]
push ecx
call edi
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 0x52f410
mov edx, dword [esp + 0x2c0]
mov eax, dword [esp + 0x30]
push esi
push edx
push eax
call fcn.0046a2d0
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_]
push ebp
mov byte [esp + 0x2b8], 2
call edi
add esp, 4
lea ecx, [esp + 0x2c]
push eax
push ebp
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 eax, dword [esp + 0x30]
test eax, eax
jne 0x52f437
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 + 0x88]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x52f454
xor bl, bl
mov byte [esp + 0x13], 1
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b8], 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_]
test bl, bl
je 0x52f4fc
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x40]
mov byte [esp + 0x40], dl
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 eax, [esp + 0x88]
push eax
call edi
add esp, 4
mov esi, eax
lea ecx, [esp + 0x3c]
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 0x52f4c5
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x88]
push esi
push ecx
push edx
call fcn.0046a2d0
add esp, 0xc
lea ecx, [esp + 0x3c]
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 ecx, dword [esp + 0x2c8]
lea edx, [esp + 0x3c]
push edx
push 1
mov eax, dword [ecx + 8]
mov byte [esp + 0x2bc], 3
push eax
call fcn.0046d3b0
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x2b8], 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_]
inc dword [esp + 0x14]
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x52f364
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 0x52f553
mov al, byte [ecx - 1]
test al, al
je 0x52f547
cmp al, 0xff
je 0x52f547
dec al
mov byte [ecx - 1], al
mov eax, dword [esp + 0x10]
jmp 0x52f340
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
jmp 0x52f340