Function at 0x5102b0
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x582951
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.0054c1a0
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 0x5102ee
mov eax, edi
push eax
lea ecx, [esp + 0x18]
call fcn.0054c840
test al, al
je 0x51030c
mov ebp, dword [str.StormPlayer_PrcoShareVideoInfo_83573C4D_4946_4809_9871_3A2CA67CCC77]
mov dword [esp + 0xc], 0x858
jmp 0x510337
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 0x510317
mov eax, edi
push eax
lea ecx, [esp + 0x14]
call fcn.0054e4d0
test al, al
je 0x510423
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 0x5103ec
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
je 0x51036d
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 0x5103ec
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 0x5103e8
push 0
push 0
push 0
push 6
push ebp
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
je 0x5103e8
mov esi, dword [esp + 0x4c]
test esi, esi
jne 0x5103b6
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 0x50f2d0
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.0054c260
test edi, edi
pop esi
je 0x510463
mov al, byte [edi - 1]
test al, al
je 0x510459
cmp al, 0xff
je 0x510459
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.0054c260
cmp edi, ebx
je 0x510463
mov al, byte [edi - 1]
test al, al
je 0x510459
cmp al, 0xff
je 0x510459
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