Function at 0x4b3950
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4120
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x12a0
call fcn.0048af60
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x12b0]
mov ecx, 0x4a8
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x51e710]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
push 0x4e4faa
lea ecx, [ebp - 0x20]
call fcn.004aaf30
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x1030], 0
xor eax, eax
mov dword [ebp - 0x102f], eax
mov dword [ebp - 0x102b], eax
mov dword [ebp - 0x1027], eax
mov word [ebp - 0x1023], ax
mov byte [ebp - 0x1021], al
push 0xff0
push 0
lea ecx, [ebp - 0x1020]
push ecx
call fcn.0048a180
add esp, 0xc
mov dword [ebp - 0x103c], 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x20]
call fcn.004ab3d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0045f210
test eax, eax
jg 0x4b3b26
lea ecx, [ebp - 0x1048]
call fcn.004ade30
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
push eax
push str.Invalid_SRM_data_file_:__s
lea ecx, [ebp - 0x1048]
push ecx
call fcn.004a6ef0
add esp, 0xc
push 0x24a
push ecx
mov ecx, esp
mov dword [ebp - 0x1110], esp
push 0x4e5f74
call fcn.004aaf30
mov dword [ebp - 0x11f8], eax
mov edx, dword [ebp - 0x11f8]
mov dword [ebp - 0x11fc], edx
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x1114], esp
push 0x4e6034
call fcn.004a68d0
mov dword [ebp - 0x1200], eax
mov eax, dword [ebp - 0x1200]
mov dword [ebp - 0x1204], eax
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x1118], esp
lea edx, [ebp - 0x1048]
push edx
call fcn.004a68a0
mov dword [ebp - 0x1208], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x110c]
call fcn.004ab0a0
mov dword [ebp - 0x120c], eax
mov eax, dword [ebp - 0x120c]
mov dword [ebp - 0x1210], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1210]
push ecx
lea ecx, [ebp - 0x10fc]
call fcn.004ab000
push 0x519084
lea edx, [ebp - 0x10fc]
push edx
call fcn.0048a653
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x110c]
call fcn.004ab2c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.004a6ad0
mov esi, esp
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.0045f220
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.004cc645
mov dword [ebp - 0x1050], eax
cmp dword [ebp - 0x1050], 0xffffffff
jne 0x4b3c62
lea ecx, [ebp - 0x1058]
call fcn.004ade30
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x20]
push eax
push str.SRM_file_open_failed_:__s
lea ecx, [ebp - 0x1058]
push ecx
call fcn.004a6ef0
add esp, 0xc
push 0x253
push ecx
mov ecx, esp
mov dword [ebp - 0x113c], esp
push 0x4e604c
call fcn.004aaf30
mov dword [ebp - 0x1214], eax
mov edx, dword [ebp - 0x1214]
mov dword [ebp - 0x1218], edx
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x1140], esp
push 0x4e605c
call fcn.004a68d0
mov dword [ebp - 0x121c], eax
mov eax, dword [ebp - 0x121c]
mov dword [ebp - 0x1220], eax
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x1144], esp
lea edx, [ebp - 0x1058]
push edx
call fcn.004a68a0
mov dword [ebp - 0x1224], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1138]
call fcn.004ab0a0
mov dword [ebp - 0x1228], eax
mov eax, dword [ebp - 0x1228]
mov dword [ebp - 0x122c], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x122c]
push ecx
lea ecx, [ebp - 0x1128]
call fcn.004ab000
push 0x519084
lea edx, [ebp - 0x1128]
push edx
call fcn.0048a653
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1138]
call fcn.004ab2c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1058]
call fcn.004a6ad0
mov esi, esp
push 0
mov eax, dword [ebp - 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.004cc645
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0047228e
add esp, 4
mov dword [ebp - 0x1230], eax
mov edx, dword [ebp - 0x1230]
mov dword [ebp - 0x1148], edx
mov eax, dword [ebp - 0x1148]
mov dword [ebp - 0x2c], eax
push 4
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0048a180
add esp, 0xc
mov dword [ebp - 0x1064], 0
mov esi, esp
push 0
lea edx, [ebp - 0x1064]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1050]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.004cc645
mov dword [ebp - 0x106c], eax
cmp dword [ebp - 0x106c], 0
je 0x4b3d03
mov eax, dword [ebp - 0x1064]
cmp eax, dword [ebp - 0x28]
je 0x4b3e24
mov esi, esp
mov ecx, dword [ebp - 0x1050]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004cc645
lea ecx, [ebp - 0x1074]
call fcn.004ade30
mov byte [ebp - 4], 0xa
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004cc645
push eax
push str.SRM_file_read_failed__errCode:_d
lea edx, [ebp - 0x1074]
push edx
call fcn.004a6ef0
add esp, 0xc
push 0x263
push ecx
mov ecx, esp
mov dword [ebp - 0x116c], esp
push 0x4e6074
call fcn.004aaf30
mov dword [ebp - 0x1234], eax
mov eax, dword [ebp - 0x1234]
mov dword [ebp - 0x1238], eax
mov byte [ebp - 4], 0xb
push ecx
mov ecx, esp
mov dword [ebp - 0x1170], esp
push 0x4e60e4
call fcn.004a68d0
mov dword [ebp - 0x123c], eax
mov ecx, dword [ebp - 0x123c]
mov dword [ebp - 0x1240], ecx
mov byte [ebp - 4], 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x1174], esp
lea edx, [ebp - 0x1074]
push edx
call fcn.004a68a0
mov dword [ebp - 0x1244], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1168]
call fcn.004ab0a0
mov dword [ebp - 0x1248], eax
mov eax, dword [ebp - 0x1248]
mov dword [ebp - 0x124c], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x124c]
push ecx
lea ecx, [ebp - 0x1158]
call fcn.004ab000
push 0x519084
lea edx, [ebp - 0x1158]
push edx
call fcn.0048a653
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1168]
call fcn.004ab2c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1074]
call fcn.004a6ad0
mov esi, esp
mov eax, dword [ebp - 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004cc645
mov dword [ebp - 0x107c], 0
jmp 0x4b3e55
mov ecx, dword [ebp - 0x107c]
add ecx, 1
mov dword [ebp - 0x107c], ecx
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.004abbb0
cmp dword [ebp - 0x107c], eax
jae 0x4b43d6
mov edx, dword [ebp - 0x107c]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.004abb20
mov dword [ebp - 0x1250], eax
mov eax, dword [ebp - 0x1250]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x1080], ecx
cmp dword [ebp - 0x1080], 4
je 0x4b3f22
cmp dword [ebp - 0x1080], 5
je 0x4b3f22
cmp dword [ebp - 0x1080], 0xa
je 0x4b3f22
lea ecx, [ebp - 0x1088]
call fcn.004ade30
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x1080]
push edx
push str.SetSRMData._Not_support_connector_type_:__lu
lea eax, [ebp - 0x1088]
push eax
call fcn.004a6ef0
add esp, 0xc
push 0x277
push 0x4e6174
push 0x4e6184
push ecx
mov ecx, esp
mov dword [ebp - 0x1178], esp
lea edx, [ebp - 0x1088]
push edx
call fcn.004a68a0
mov dword [ebp - 0x1254], eax
call fcn.004ab930
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1088]
call fcn.004a6ad0
jmp 0x4b3e46
push 0x1000
push 0
lea eax, [ebp - 0x1030]
push eax
call fcn.0048a180
add esp, 0xc
push 4
push 0
lea ecx, [ebp - 0x103c]
push ecx
call fcn.0048a180
add esp, 0xc
mov edx, dword [0x4e2a80]
mov dword [ebp - 0x1020], edx
mov eax, dword [0x4e2a84]
mov dword [ebp - 0x101c], eax
mov ecx, dword [0x4e2a88]
mov dword [ebp - 0x1018], ecx
mov edx, dword [0x4e2a8c]
mov dword [ebp - 0x1014], edx
mov eax, dword [ebp - 0x107c]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.004abb20
mov dword [ebp - 0x1258], eax
mov ecx, dword [ebp - 0x1258]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1010], edx
mov dword [ebp - 0x100c], 4
mov dword [ebp - 0x103c], 1
mov eax, dword [ebp - 0x100c]
push eax
lea ecx, [ebp - 0x103c]
push ecx
mov edx, 1
imul eax, edx, 0
lea ecx, [ebp + eax - 0x1008]
push ecx
call fcn.0048fe00
add esp, 0xc
mov edx, dword [ebp - 0x107c]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.004abb20
mov dword [ebp - 0x125c], eax
lea eax, [ebp - 0x1030]
push eax
push 0xff0
lea ecx, [ebp - 0x1020]
push ecx
mov edx, dword [ebp - 0x125c]
add edx, 0xc
push edx
mov ecx, dword [ebp - 0x18]
call fcn.004b05c0
mov dword [ebp - 0x1260], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1260]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x10], 0
jge 0x4b4173
push 0
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x10a0]
call fcn.004ab1c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x10ac]
call fcn.004ade30
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x10a0]
call fcn.004ab590
push eax
lea ecx, [ebp - 0x10a0]
call fcn.004ab570
push eax
push str.Error_Code___x__ComputeOMAC_failed____s__
lea edx, [ebp - 0x10ac]
push edx
call fcn.004a6ef0
add esp, 0x10
push 0x28f
push ecx
mov ecx, esp
mov dword [ebp - 0x119c], esp
push 0x4e619c
call fcn.004aaf30
mov dword [ebp - 0x1264], eax
mov eax, dword [ebp - 0x1264]
mov dword [ebp - 0x1268], eax
mov byte [ebp - 4], 0x11
push ecx
mov ecx, esp
mov dword [ebp - 0x11a0], esp
push 0x4e6240
call fcn.004a68d0
mov dword [ebp - 0x126c], eax
mov ecx, dword [ebp - 0x126c]
mov dword [ebp - 0x1270], ecx
mov byte [ebp - 4], 0x12
push ecx
mov ecx, esp
mov dword [ebp - 0x11a4], esp
lea edx, [ebp - 0x10ac]
push edx
call fcn.004a68a0
mov dword [ebp - 0x1274], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1198]
call fcn.004ab0a0
mov dword [ebp - 0x1278], eax
mov eax, dword [ebp - 0x1278]
mov dword [ebp - 0x127c], eax
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x127c]
push ecx
lea ecx, [ebp - 0x1188]
call fcn.004ab000
push 0x519084
lea edx, [ebp - 0x1188]
push edx
call fcn.0048a653
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1198]
call fcn.004ab2c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x10ac]
call fcn.004a6ad0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10a0]
call fcn.004ab330
mov eax, dword [ebp - 0x107c]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.004abb20
mov dword [ebp - 0x1280], eax
mov ecx, dword [ebp - 0x1280]
call fcn.004a8240
mov dword [ebp - 0x1284], eax
mov esi, esp
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x1030]
push eax
mov ecx, dword [ebp - 0x1284]
push ecx
mov edx, dword [ebp - 0x1284]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
call ecx
cmp esi, esp
call fcn.004cc645
mov dword [ebp - 0x1288], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1288]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x10], 0
jge 0x4b4397
push 0
push 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x10c4]
call fcn.004ab1c0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x10d0]
call fcn.004ade30
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x10], 0xc0262512
jne 0x4b424a
lea ecx, [ebp - 0x10c4]
call fcn.004ab590
push eax
lea ecx, [ebp - 0x10c4]
call fcn.004ab570
push eax
push str.Error_Code___x__Configure_failed._The_SRM_is_not_valid____s__
lea edx, [ebp - 0x10d0]
push edx
call fcn.004a6ef0
add esp, 0x10
jmp 0x4b42b0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 0xc0262513
jne 0x4b4284
lea ecx, [ebp - 0x10c4]
call fcn.004ab590
push eax
lea ecx, [ebp - 0x10c4]
call fcn.004ab570
push eax
push str.Error_Code___x__Configure_failed._The_video_output_does_not_support_HDCP.____s__
lea ecx, [ebp - 0x10d0]
push ecx
call fcn.004a6ef0
add esp, 0x10
jmp 0x4b42b0
lea ecx, [ebp - 0x10c4]
call fcn.004ab590
push eax
lea ecx, [ebp - 0x10c4]
call fcn.004ab570
push eax
push str.Error_Code___x__Configure_failed.____s__
lea edx, [ebp - 0x10d0]
push edx
call fcn.004a6ef0
add esp, 0x10
push 0x29f
push ecx
mov ecx, esp
mov dword [ebp - 0x11c8], esp
push str.OPMOperator.cpp
call fcn.004aaf30
mov dword [ebp - 0x128c], eax
mov eax, dword [ebp - 0x128c]
mov dword [ebp - 0x1290], eax
mov byte [ebp - 4], 0x16
push ecx
mov ecx, esp
mov dword [ebp - 0x11cc], esp
push str.SetSRMData
call fcn.004a68d0
mov dword [ebp - 0x1294], eax
mov ecx, dword [ebp - 0x1294]
mov dword [ebp - 0x1298], ecx
mov byte [ebp - 4], 0x17
push ecx
mov ecx, esp
mov dword [ebp - 0x11d0], esp
lea edx, [ebp - 0x10d0]
push edx
call fcn.004a68a0
mov dword [ebp - 0x129c], eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x11c4]
call fcn.004ab0a0
mov dword [ebp - 0x12a0], eax
mov eax, dword [ebp - 0x12a0]
mov dword [ebp - 0x12a4], eax
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x12a4]
push ecx
lea ecx, [ebp - 0x11b4]
call fcn.004ab000
push 0x519084
lea edx, [ebp - 0x11b4]
push edx
call fcn.0048a653
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x11c4]
call fcn.004ab2c0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x10d0]
call fcn.004a6ad0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10c4]
call fcn.004ab330
mov eax, dword [ebp - 0x107c]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.004abb20
mov dword [ebp - 0x12a8], eax
mov ecx, dword [ebp - 0x12a8]
add ecx, 8
mov dword [ebp - 0x12ac], ecx
mov edx, dword [ebp - 0x12ac]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp - 0x12ac]
mov dword [ecx], eax
jmp 0x4b3e46
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x11d4], edx
mov eax, dword [ebp - 0x11d4]
push eax
call fcn.00472297
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x11d8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004a6ad0
mov eax, dword [ebp - 0x11d8]
jmp 0x4b4547
push edx
mov ecx, ebp
push eax
lea edx, [0x4b4584]
call fcn.004cc5ed
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00487e85
add esp, 0x12b0
cmp ebp, esp
call fcn.004cc645
mov esp, ebp
pop ebp
ret 4