Function at 0x4c3fd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f419f
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 0x4c40fe
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call edi
add esp, 4
test eax, eax
je 0x4c40fe
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 0x4c4059
xor eax, eax
jmp 0x4c4060
mov ecx, dword [esp + 0x1c]
lea eax, [eax + ecx*2]
cmp word [eax - 2], 0x5c
je 0x4c4081
push 0x528bac
call edi
add esp, 4
lea ecx, [esp + 0x14]
push eax
push 0x528bac
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 0x531c08
call edi
add esp, 4
lea ecx, [esp + 0x14]
push eax
push 0x531c08
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 0x4c40c9
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 0x4c411a
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 0x4c4126
xor ebx, ebx
cmp word [esp + 0x88], 0x2e
je 0x4c42bc
test byte [esp + 0x5c], 0x10
jne 0x4c42bc
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp ebp, ebx
jne 0x4c4159
cmp eax, ebx
sete bl
jmp 0x4c416f
cmp eax, ebx
je 0x4c416d
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4c416d
mov bl, 1
jmp 0x4c416f
xor bl, bl
mov al, byte [esp + 0x13]
test al, al
jne 0x4c4228
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 0x4c41d0
mov edx, dword [esp + 0x2c0]
mov eax, dword [esp + 0x30]
push esi
push edx
push eax
call fcn.00437cd0
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 0x4c41f7
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 0x4c4214
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 0x4c42bc
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 0x4c4285
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x88]
push esi
push ecx
push edx
call fcn.00437cd0
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.00439bd0
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 0x4c4124
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 0x4c4313
mov al, byte [ecx - 1]
test al, al
je 0x4c4307
cmp al, 0xff
je 0x4c4307
dec al
mov byte [ecx - 1], al
mov eax, dword [esp + 0x10]
jmp 0x4c4100
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
jmp 0x4c4100