Function at 0x505db0
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x56c221
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push edi
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], ebx
call fcn.00539870
mov edi, dword [esp + 0x48]
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]
cmp edi, ebx
mov byte [esp + 0x3c], 1
je 0x505dee
mov eax, edi
push eax
lea ecx, [esp + 0x18]
call fcn.00539f10
test al, al
je 0x505e0c
mov ebp, dword [str.StormPlayer_PrcoShareVideoInfo_83573C4D_4946_4809_9871_3A2CA67CCC77]
mov dword [esp + 0xc], 0x858
jmp 0x505e37
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]
cmp edi, ebx
je 0x505e17
mov eax, edi
push eax
lea ecx, [esp + 0x14]
call fcn.0053bba0
test al, al
je 0x505f23
mov ebp, dword [str.StormPlayer_PrcoShareAlbumInfo_DC18E5F3_3DF9_4d2c_9A55_D101322B8859]
mov dword [esp + 0xc], 0x85c
mov eax, dword [str.StormPlayer_PrcoShareHwndName_gbhgferereeEE98721eha]
push esi
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x505eec
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x505e6d
mov ebx, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x505eec
mov ecx, dword [esp + 0x50]
push ebp
lea edi, [ecx + 1]
push edi
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
je 0x505ee8
push 0
push 0
push 0
push 6
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x505ee8
mov esi, dword [esp + 0x4c]
test esi, esi
jne 0x505eb6
mov esi, 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]
mov ecx, edi
mov edi, eax
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
push ebp
push 0x504dd0
push 1
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_SendMessageCallbackA]
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 0
call fcn.00539930
test edi, edi
pop esi
je 0x505f63
mov al, byte [edi - 1]
test al, al
je 0x505f59
cmp al, 0xff
je 0x505f59
dec al
mov byte [edi - 1], al
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 0
call fcn.00539930
cmp edi, ebx
je 0x505f63
mov al, byte [edi - 1]
test al, al
je 0x505f59
cmp al, 0xff
je 0x505f59
dec al
mov byte [edi - 1], al
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x14
dec edi
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 0x14