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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595205
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], eax
jb 0x4d1c83
mov ecx, dword [eax]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x4d1d20
push 1
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4d1cec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
cmp dword [eax + 0x14], 8
jb 0x4d1ccc
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov edx, str.E:BT5a34f070_108c_442c_81a8_adb208410955ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push ecx
push 0x27
push str.Intel::Analytics::CHashSubstitution::Md5Hash
call fcn.004d1950
add esp, 0x14
push 8
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 7
push str._UNKNOWN
mov word [edi], ax
call fcn.00425790
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d2001
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x4d1da5
push 5
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4d1d6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], eax
mov edx, str.E:BT5a34f070_108c_442c_81a8_adb208410955ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea eax, [ebp - 0x78]
mov ecx, 5
push eax
push str.failed_to_get_file_size:__d
push 0x2f
push str.Intel::Analytics::CHashSubstitution::Md5Hash
call fcn.00428a80
add esp, 0x10
push 8
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 7
push str._UNKNOWN
mov word [edi], ax
call fcn.00425790
test esi, esi
je 0x4d2001
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d2001
cmp eax, 0xa00000
jbe 0x4d1e13
push 5
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4d1dd8
push str.file_too_large
push 0x36
push str.Intel::Analytics::CHashSubstitution::Md5Hash
mov edx, str.E:BT5a34f070_108c_442c_81a8_adb208410955ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
mov ecx, 5
call fcn.00428ac0
add esp, 0xc
push 8
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 7
push str._UNKNOWN
mov word [edi], ax
call fcn.00425790
test esi, esi
je 0x4d2001
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d2001
push eax
mov byte [ebp - 4], 1
call fcn.0056027d
mov edi, eax
add esp, 4
mov dword [ebp - 0x70], edi
test edi, edi
jne 0x4d1e9b
push 5
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4d1e53
push str.failed_to_allocate_memory
push 0x3d
push str.Intel::Analytics::CHashSubstitution::Md5Hash
mov edx, str.E:BT5a34f070_108c_442c_81a8_adb208410955ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea ecx, [edi + 5]
call fcn.00428ac0
add esp, 0xc
mov edi, dword [ebp - 0x74]
xor eax, eax
push 8
push str._UNKNOWN
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
call fcn.00425790
push 0
call fcn.0055e7dd
add esp, 4
test esi, esi
je 0x4d2001
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d2001
push 0
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push eax
push dword [ebp - 0x78]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d1f18
push 5
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4d1ef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], eax
mov edx, str.E:BT5a34f070_108c_442c_81a8_adb208410955ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea eax, [ebp - 0x78]
mov ecx, 5
push eax
push str.failed_to_read_file:__d
push 0x44
push str.Intel::Analytics::CHashSubstitution::Md5Hash
call fcn.00428a80
add esp, 0x10
mov ecx, dword [ebp - 0x74]
xor eax, eax
push 8
push str._UNKNOWN
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
jmp 0x4d1fe5
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x78]
je 0x4d1f4e
push 5
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4d1ef0
push str.failed_to_read_the_right_amount_of_data
push 0x49
push str.Intel::Analytics::CHashSubstitution::Md5Hash
mov edx, str.E:BT5a34f070_108c_442c_81a8_adb208410955ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
mov ecx, 5
call fcn.00428ac0
add esp, 0xc
jmp 0x4d1ef0
push 0x10
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
push ecx
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
call fcn.004ee7f0
add esp, 0x10
test eax, eax
jne 0x4d1ef0
push 0x42
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00556180
add esp, 0xc
lea edi, [ebp - 0x64]
xor esi, esi
nop dword [eax]
movzx eax, byte [ebp + esi - 0x20]
push eax
push str._02x
push 3
push edi
call fcn.00471f50
inc esi
add esp, 0x10
add edi, 4
cmp esi, 0x10
jb 0x4d1f80
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x64]
mov esi, dword [ebp - 0x6c]
xor eax, eax
mov edi, dword [ebp - 0x70]
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea eax, [edx + 2]
mov dword [ebp - 0x78], eax
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4d1fd0
sub edx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
sar edx, 1
push edx
push eax
call fcn.00425790
push edi
call fcn.0055e7dd
add esp, 4
test esi, esi
je 0x4d1ffe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x74]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret 8