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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641605
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x6d3438]
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 0x478913
mov ecx, dword [eax]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
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 0x4789b9
push 1
call fcn.0049dcb0
add esp, 4
test eax, eax
je 0x478985
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
cmp dword [eax + 0x14], 8
jb 0x47895c
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov edx, str.E:BT3ee744b7_78e2_4d9e_b7ee_63935aebafd6ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea eax, [ebp - 0x74]
mov ecx, 1
push eax
lea eax, [ebp - 0x78]
push eax
push str.failed_to_open_file:__s_with_error_code__d
push 0x27
push str.Intel::Analytics::CHashSubstitution::Md5Hash
call fcn.00439940
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 0x68f0d4
mov word [edi], ax
call fcn.0042e850
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x478c91
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x478a39
push 5
call fcn.0049dcb0
add esp, 4
test eax, eax
je 0x4789fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], eax
mov edx, str.E:BT3ee744b7_78e2_4d9e_b7ee_63935aebafd6ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea eax, [ebp - 0x78]
push eax
push str.failed_to_get_file_size:__d
push 0x2f
push str.Intel::Analytics::CHashSubstitution::Md5Hash
call fcn.00478310
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 0x68f0d4
mov word [edi], ax
call fcn.0042e850
test esi, esi
je 0x478c91
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x478c91
cmp eax, 0xa00000
jbe 0x478aa7
push 5
call fcn.0049dcb0
add esp, 4
test eax, eax
je 0x478a6c
push str.file_too_large
push 0x36
push str.Intel::Analytics::CHashSubstitution::Md5Hash
mov edx, str.E:BT3ee744b7_78e2_4d9e_b7ee_63935aebafd6ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
mov ecx, 5
call fcn.00438de0
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 0x68f0d4
mov word [edi], ax
call fcn.0042e850
test esi, esi
je 0x478c91
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x478c91
push eax
mov byte [ebp - 4], 1
call fcn.0060dd8e
mov edi, eax
add esp, 4
mov dword [ebp - 0x70], edi
test edi, edi
jne 0x478b2f
push 5
call fcn.0049dcb0
add esp, 4
test eax, eax
je 0x478ae7
push str.failed_to_allocate_memory
push 0x3d
push str.Intel::Analytics::CHashSubstitution::Md5Hash
mov edx, str.E:BT3ee744b7_78e2_4d9e_b7ee_63935aebafd6ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea ecx, [edi + 5]
call fcn.00438de0
add esp, 0xc
mov edi, dword [ebp - 0x74]
xor eax, eax
push 8
push 0x68f0d4
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
call fcn.0042e850
push 0
call fcn.0060dd99
add esp, 4
test esi, esi
je 0x478c91
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x478c91
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 0x478ba7
push 5
call fcn.0049dcb0
add esp, 4
test eax, eax
je 0x478b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], eax
mov edx, str.E:BT3ee744b7_78e2_4d9e_b7ee_63935aebafd6ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
lea eax, [ebp - 0x78]
push eax
push str.failed_to_read_file:__d
push 0x44
push str.Intel::Analytics::CHashSubstitution::Md5Hash
call fcn.00478310
add esp, 0x10
mov ecx, dword [ebp - 0x74]
xor eax, eax
push 8
push 0x68f0d4
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
jmp 0x478c75
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x78]
je 0x478bdd
push 5
call fcn.0049dcb0
add esp, 4
test eax, eax
je 0x478b7f
push str.failed_to_read_the_right_amount_of_data
push 0x49
push str.Intel::Analytics::CHashSubstitution::Md5Hash
mov edx, str.E:BT3ee744b7_78e2_4d9e_b7ee_63935aebafd6ClientAnalyticsXMLUpdater_srcBSIUpdaterPluginHashSubstitution.cpp
mov ecx, 5
call fcn.00438de0
add esp, 0xc
jmp 0x478b7f
push 0x10
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
push ecx
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
call fcn.0049ff50
add esp, 0x10
test eax, eax
jne 0x478b7f
push 0x42
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0060a8e0
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.00452290
inc esi
add esp, 0x10
add edi, 4
cmp esi, 0x10
jb 0x478c10
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 0x478c60
sub edx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
sar edx, 1
push edx
push eax
call fcn.0042e850
push edi
call fcn.0060dd99
add esp, 4
test esi, esi
je 0x478c8e
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.00608185
mov esp, ebp
pop ebp
ret 8