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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bb050
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x2c], eax
cmp esi, ebx
je 0x49cc37
cmp byte [esi], bl
je 0x49cc37
cmp eax, ebx
je 0x49cc37
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], ebx
jb 0x49ca75
mov eax, dword [eax]
mov byte [eax], bl
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], ax
mov eax, esi
mov dword [esp + 0x60], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49ca93
lea ecx, [esp + 0x34]
push ecx
sub eax, edx
mov ecx, esi
call fcn.004747c0
mov eax, dword [esp + 0x38]
add esp, 4
cmp dword [esp + 0x48], 8
jae 0x49caba
lea eax, [esp + 0x34]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49cc26
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x49cb31
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], str.p:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclientimegoopy_third_partygoogle_gadgets_for_linuxggadget_system_utils.cc
mov dword [esp + 0x18], 0x11d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_when_getting_file_size__s:__d
lea esi, [esp + 0x1c]
call fcn.00491eb0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49cc26
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x49cb69
jg 0x49cb44
cmp eax, 0x1400000
jbe 0x49cb69
push esi
push 0x1400000
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], str.p:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclientimegoopy_third_partygoogle_gadgets_for_linuxggadget_system_utils.cc
mov dword [esp + 0x20], 0x122
push str.File_is_too_big____d__:__s
jmp 0x49cb19
push eax
mov dword [esp + 0x20], eax
call fcn.00547a7c
mov ebx, eax
add esp, 4
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
push ecx
push ebx
mov byte [esp + 0x70], 1
push edi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49cbe0
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x1c]
jne 0x49cbe0
mov ecx, dword [esp + 0x2c]
push eax
push ebx
call fcn.004078a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov byte [esp + 0x64], 0
call fcn.00549081
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], 0xffffffff
call fcn.00404e90
mov al, 1
jmp 0x49cc39
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], str.p:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclientimegoopy_third_partygoogle_gadgets_for_linuxggadget_system_utils.cc
mov dword [esp + 0x18], 0x12b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_when_loading_file__s:__d
lea esi, [esp + 0x1c]
call fcn.00491eb0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov byte [esp + 0x64], 0
call fcn.00549081
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], 0xffffffff
call fcn.00404e90
xor al, al
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00548a41
mov esp, ebp
pop ebp
ret