Function at 0x499a65
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x53beb8
call fcn.004b43b0
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esi + 0x210]
test eax, eax
mov byte [esp + 0x2c], 1
jne 0x499a90
xor ebp, ebp
jmp 0x499a93
mov ebp, dword [eax + 0x20]
mov eax, dword [str.KureePlayer_PrcoShareFullscreenHwndName_gbhgferereeEE98721eha]
push eax
push 0
push 6
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
test edi, edi
jne 0x499aea
push ebx
push 0xc
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
je 0x499b1e
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x499b1e
mov edx, eax
mov ecx, 0xc
push eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 4], ebp
mov dword [edx + 8], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x499b1e
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x499b17
mov edx, eax
mov ecx, 0xc
push eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 4], ebp
mov dword [edx + 8], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], 0
call fcn.00418660
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [edx + 0xb4]
mov eax, dword [esi + 0x1e8]
test eax, eax
jne 0x499f22
mov eax, dword [esp + 0x10]
test eax, eax
je 0x499f22
call fcn.00418660
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [edx + 0xa8]
mov eax, dword [esp + 0x14]
cmp eax, 4
je 0x499b78
cmp eax, 5
jne 0x499dc2
call fcn.00474e70
test eax, eax
mov dword [esp + 0x18], eax
je 0x499dc2
call fcn.00418660
mov ecx, eax
call fcn.0043e890
call fcn.00418660
mov ecx, eax
call fcn.0043e9e0
mov eax, dword [0x537164]
test eax, eax
je 0x499dc2
call fcn.0049c1a0
mov ecx, eax
call fcn.004bc810
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ebx, eax
test ebx, ebx
je 0x499dc2
push 0xa
mov dword [esi + 0x1e8], 1
call fcn.00418660
mov ecx, eax
call fcn.0043f1e0
call fcn.0049c1a0
mov ecx, eax
call fcn.004bc810
push 2
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
mov edx, eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0x28
push eax
push edx
call dword [sym.imp.USER32.dll_GetMonitorInfoA]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
call fcn.00474d40
mov ebp, eax
lea eax, [esi + 0x200]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebx + 0x20]
lea edi, [esi + 0x1f0]
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi]
mov ecx, dword [esi + 0x1f4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x1f4]
mov edx, dword [esp + 0x1c]
sub ecx, eax
push ecx
mov ecx, dword [edi]
sub edx, ecx
push edx
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
sub ecx, eax
push 0x40
push ecx
mov ecx, dword [esp + 0x38]
lea edi, [esi + 0x210]
sub edx, ecx
push edx
push eax
mov eax, dword [sym.imp.MFC42.DLL_CWndconstCWnd::wndTopMost]
push ecx
push eax
mov ecx, edi
call sub.MFC42.DLL_CWnd::SetWindowPos
test edi, edi
je 0x499cc3
mov edi, dword [edi + 0x20]
mov ecx, dword [ebx + 0x20]
push edi
push ecx
call dword [sym.imp.USER32.dll_SetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x1ec], eax
mov eax, dword [esp + 0x34]
push 0x44
sub edx, eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
sub eax, edx
mov ecx, ebx
push eax
push 0
push 0
push 0
call sub.MFC42.DLL_CWnd::SetWindowPos
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push 5
push 0
dec ecx
push 0
dec edx
push ecx
push edx
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::SetWindowPos
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov edi, eax
lea ecx, [esp + 0x40]
push ecx
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x38]
mov edx, ecx
sub edx, eax
push 0x40
push edx
mov edx, dword [esp + 0x38]
sub ebp, edx
sub eax, ecx
mov ecx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x48]
sub eax, ecx
add eax, ebp
mov ecx, edi
push eax
mov eax, dword [sym.imp.MFC42.DLL_CWndconstCWnd::wndTopMost]
push edx
push eax
call sub.MFC42.DLL_CWnd::SetWindowPos
mov ecx, dword [ebx + 0x20]
push 0x49a620
push 0xfffffffffffffffc
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x53bc4c], eax
call fcn.0049c1a0
add eax, 0x1c
je 0x499db2
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 0xc], ecx
mov ecx, eax
call fcn.004b6530
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push 0
push 2
call dword [edx + 0xc8]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 1
call fcn.004272e0
add esp, 4
call fcn.00474e70
test eax, eax
je 0x499f22
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x60]
test eax, eax
je 0x499f22
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
call fcn.0049c1a0
mov ecx, eax
call fcn.004bc810
push 2
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
mov edx, eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0x28
push eax
push edx
call dword [sym.imp.USER32.dll_GetMonitorInfoA]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
sub eax, ebx
lea ecx, [esp + 0x30]
sub eax, edi
add eax, edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x499ed0
mov edx, dword [esi + 0x10]
lea edi, [esi + 0x10]
push 3
mov ecx, edi
call dword [edx + 0xcc]
mov eax, dword [esi + 0x270]
test eax, eax
jne 0x499ebe
mov eax, dword [edi]
push 2
mov ecx, edi
call dword [eax + 0xcc]
mov edx, dword [edi]
push 0xc8
push 1
mov ecx, edi
call dword [edx + 0xc8]
mov dword [esi + 0x270], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, dword [esi + 0x2dc]
test eax, eax
jne 0x499eed
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push 0x7d0
push 3
call dword [eax + 0xc8]
mov eax, dword [esi + 0x270]
test eax, eax
je 0x499f18
mov edx, dword [esi + 0x10]
lea edi, [esi + 0x10]
push 1
mov ecx, edi
call dword [edx + 0xcc]
mov eax, dword [edi]
push 0x7d0
push 2
mov ecx, edi
call dword [eax + 0xc8]
mov dword [esi + 0x270], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret