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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5956c5
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 0x4d1d93
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 0x4d1e30
push 1
call fcn.004dec10
add esp, 4
test eax, eax
je 0x4d1dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
cmp dword [eax + 0x14], 8
jb 0x4d1ddc
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.004d1a60
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.00425810
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d2111
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x4d1eb5
push 5
call fcn.004dec10
add esp, 4
test eax, eax
je 0x4d1e7a
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.00428b00
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.00425810
test esi, esi
je 0x4d2111
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d2111
cmp eax, 0xa00000
jbe 0x4d1f23
push 5
call fcn.004dec10
add esp, 4
test eax, eax
je 0x4d1ee8
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.00428b40
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.00425810
test esi, esi
je 0x4d2111
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d2111
push eax
mov byte [ebp - 4], 1
call fcn.00560371
mov edi, eax
add esp, 4
mov dword [ebp - 0x70], edi
test edi, edi
jne 0x4d1fab
push 5
call fcn.004dec10
add esp, 4
test eax, eax
je 0x4d1f63
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.00428b40
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.00425810
push 0
call fcn.0055e8cd
add esp, 4
test esi, esi
je 0x4d2111
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d2111
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 0x4d2028
push 5
call fcn.004dec10
add esp, 4
test eax, eax
je 0x4d2000
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.00428b00
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 0x4d20f5
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x78]
je 0x4d205e
push 5
call fcn.004dec10
add esp, 4
test eax, eax
je 0x4d2000
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.00428b40
add esp, 0xc
jmp 0x4d2000
push 0x10
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
push ecx
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
call fcn.004ee900
add esp, 0x10
test eax, eax
jne 0x4d2000
push 0x42
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00556260
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.00472030
inc esi
add esp, 0x10
add edi, 4
cmp esi, 0x10
jb 0x4d2090
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 0x4d20e0
sub edx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
sar edx, 1
push edx
push eax
call fcn.00425810
push edi
call fcn.0055e8cd
add esp, 4
test esi, esi
je 0x4d210e
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.00553daa
mov esp, ebp
pop ebp
ret 8