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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4810d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4ac084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00403750
call fcn.00403450
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x43f4db
push 0x80004005
call fcn.004039a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0043f170
test eax, eax
js 0x43f662
push str.release_notes.txt
lea ecx, [ebp - 0x10]
call fcn.00408350
mov edi, dword [ebp - 0x10]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x43f629
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x43f5ec
shr eax, 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
lea ecx, [eax + 1]
push ecx
mov ecx, ebx
call fcn.004038f0
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], eax
push ecx
push dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f5d5
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, dword [ebp - 0x20]
mov word [ecx + eax*2], dx
mov eax, dword [ebx]
test eax, eax
jne 0x43f592
xor ecx, ecx
jmp 0x43f5a4
push dword [eax - 8]
push eax
call fcn.0045ed24
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x43f5cb
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x43f5cb
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
test esi, esi
je 0x43f5c1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x43f691
push 0x80070057
call fcn.004039a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Read_release_notes_FAILED:_err___i
push 3
push 3
push 0x8d
jmp 0x43f601
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSize_release_notes_FAILED:_err___i
push 3
push 3
push 0x90
push str.UpdateChecker::ReadReleaseNotes
push str.UpdateChecker.cpp
lea ecx, [ebp - 0x30]
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x14
test esi, esi
je 0x43f68f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43f68f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_release_notes_file_FAILED:_err___i
push 3
push 3
push 0x93
push str.UpdateChecker::ReadReleaseNotes
push str.UpdateChecker.cpp
lea ecx, [ebp - 0x30]
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43f68f
push eax
push str.GetProgramDataPath_FAILED:_hr__0x_x
push 3
push 3
push 0x96
push str.UpdateChecker::ReadReleaseNotes
push str.UpdateChecker.cpp
lea ecx, [ebp - 0x30]
call fcn.00457220
push eax
call fcn.004573f0
mov edi, dword [ebp - 0x10]
add esp, 0x14
xor esi, esi
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x43f6b0
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret