Function at 0x47187f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x516538
push 0x4d0af0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x4770
call fcn.004cc960
mov eax, dword [0x51a0a0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x40e4], esi
mov dword [ebp - 0x4154], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4124], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4150], eax
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x40ec], ebx
mov ecx, dword [esi]
test ecx, ecx
jne 0x4718f6
push 6
pop eax
jmp 0x4720c0
mov eax, edi
mov dword [ebp - 0x40e8], eax
mov dword [ebp - 0x411c], eax
mov dword [ebp - 0x4160], ecx
mov dword [ebp - 0x4168], 0x4715a0
mov dword [ebp - 0x4164], 0x471510
mov dword [ebp - 0x40e0], 0x492660
mov dword [ebp - 0x40dc], 0x4926c0
mov dword [ebp - 0x40d8], 0x4926d0
mov dword [ebp - 0x40d4], 0x492720
lea eax, [ebp - 0x4168]
mov dword [ebp - 0x40d0], eax
mov dword [ebp - 0x4130], fcn.004925d0
mov dword [ebp - 0x412c], 0x4925f0
mov dword [ebp - 0x4148], fcn.004925d0
mov dword [ebp - 0x4144], 0x4925f0
call fcn.00490086
lea ecx, [ebp - 0x41f0]
call fcn.00490192
lea eax, [ebp - 0x4148]
push eax
lea eax, [ebp - 0x4130]
push eax
lea edx, [ebp - 0x40e0]
call fcn.00492128
pop ecx
pop ecx
mov dword [ebp - 0x40f4], eax
test eax, eax
je 0x4719c6
lea edx, [ebp - 0x4130]
lea ecx, [ebp - 0x41f0]
call fcn.004901cd
mov eax, dword [ebp - 0x40f4]
mov dword [ebp - 0x4110], eax
test eax, eax
je 0x471a33
push 2
pop esi
mov ecx, esi
call fcn.0044bc30
test al, al
je 0x471a11
push esi
push 0xb8
push str..._.._chrome_installer_util_lzma_util.cc
lea ecx, [ebp - 0x42a0]
call fcn.0044bca0
push dword [ebp - 0x40f4]
lea ecx, [eax + 8]
mov edx, str.Error_returned_by_SzArchiveOpen:
call fcn.0044c7c0
mov ecx, eax
call fcn.0041af3b
xor ebx, ebx
inc ebx
test bl, 1
je 0x471a21
lea ecx, [ebp - 0x42a0]
call fcn.0044bd90
mov eax, dword [ebp - 0x40e4]
mov dword [eax + 0xc], 3
jmp 0x4718ee
mov dword [ebp - 0x40f4], edi
or dword [ebp - 0x4138], 0xffffffff
mov dword [ebp - 0x4134], edi
push dword [ebp - 0x4124]
lea ecx, [ebp - 0xc0]
call fcn.00483347
mov dword [esi + 0xc], edi
mov eax, edi
push 2
pop esi
mov dword [ebp - 0x40f0], eax
cmp eax, dword [ebp - 0x41b0]
jae 0x472089
mov dword [ebp - 0x4128], edi
mov dword [ebp - 0x40fc], edi
mov dword [ebp - 0x4120], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x4148]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0x40fc]
push ecx
lea ecx, [ebp - 0x4128]
push ecx
lea ecx, [ebp - 0x4134]
push ecx
lea ecx, [ebp - 0x40f4]
push ecx
lea ecx, [ebp - 0x4138]
push ecx
push eax
lea edx, [ebp - 0x40e0]
lea ecx, [ebp - 0x41f0]
call fcn.00492410
add esp, 0x20
mov dword [ebp - 0x4110], eax
test eax, eax
je 0x471b4e
mov ecx, esi
call fcn.0044bc30
test al, al
je 0x471b19
or ebx, esi
mov dword [ebp - 0x40ec], ebx
push esi
push 0xd1
push str..._.._chrome_installer_util_lzma_util.cc
lea ecx, [ebp - 0x4350]
call fcn.0044bca0
push dword [ebp - 0x4110]
lea ecx, [eax + 8]
mov edx, str.Error_returned_by_SzExtract:
call fcn.0044c7c0
mov ecx, eax
call fcn.0041af3b
test bl, 2
je 0x471b32
and ebx, 0xfffffffd
mov dword [ebp - 0x40ec], ebx
lea ecx, [ebp - 0x4350]
call fcn.0044bd90
push 6
pop eax
mov dword [ebp - 0x40e8], eax
mov dword [ebp - 0x411c], eax
mov eax, dword [ebp - 0x40e4]
mov dword [eax + 0xc], 4
mov dword [ebp - 4], 0xfffffffe
jmp 0x471c94
cmp dword [ebp - 0x40e8], 0
jne 0x472089
mov eax, dword [ebp - 0x417c]
mov ecx, dword [ebp - 0x40f0]
mov edx, dword [eax + ecx*4 + 4]
sub edx, dword [eax + ecx*4]
cmp edx, 1
jae 0x471d11
mov ecx, esi
call fcn.0044bc30
test al, al
je 0x471cea
or ebx, 8
push esi
push 0xe4
push str..._.._chrome_installer_util_lzma_util.cc
lea ecx, [ebp - 0x4560]
call fcn.0044bca0
lea ecx, [eax + 8]
mov edx, str.Couldnt_get_file_name
call fcn.0044c7c0
test bl, 8
je 0x471cfa
lea ecx, [ebp - 0x4560]
call fcn.0044bd90
push 6
pop ecx
mov dword [ebp - 0x40e8], ecx
mov eax, dword [ebp - 0x40e4]
mov dword [eax + 0xc], ecx
jmp 0x472089
push edx
lea ecx, [ebp - 0x410c]
call fcn.0047216f
push dword [ebp - 0x410c]
mov edx, dword [ebp - 0x40f0]
lea ecx, [ebp - 0x41f0]
call fcn.00492587
mov eax, dword [ebp - 0x4108]
add eax, 0xfffffffe
mov dword [ebp - 0x4170], eax
push eax
push dword [ebp - 0x410c]
lea ecx, [ebp - 0x64]
call fcn.0047221a
push ecx
push ecx
mov ecx, esp
push eax
call fcn.0041ad80
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x4124]
call fcn.0043fdb0
lea ecx, [ebp - 0x64]
call fcn.0041ae0c
mov ecx, dword [ebp - 0x4150]
test ecx, ecx
je 0x471d86
lea eax, [ebp - 0x34]
push eax
call fcn.0043efc0
mov ecx, dword [ebp - 0x40f0]
and ecx, 7
mov edx, 0x80
sar edx, cl
mov dword [ebp - 0x415c], edx
mov ecx, dword [ebp - 0x40f0]
shr ecx, 3
mov dword [ebp - 0x4140], ecx
mov eax, dword [ebp - 0x41a8]
test byte [ecx + eax], dl
je 0x471de4
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x40e4]
call fcn.004720de
lea ecx, [ebp - 0x34]
call fcn.0043ef40
lea ecx, [ebp - 0x410c]
call fcn.004721a8
mov eax, dword [ebp - 0x40f0]
inc eax
jmp 0x471a5f
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0043f900
push eax
mov ecx, dword [ebp - 0x40e4]
call fcn.004720de
lea ecx, [ebp - 0x4c]
call fcn.0043ef40
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
cmovae eax, dword [ebp - 0x34]
push edi
push 0x80
push esi
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - 0x40f8], edx
cmp edx, 0xffffffff
jne 0x471e9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40e8], eax
mov ecx, esi
call fcn.0044bc30
test al, al
je 0x471e7b
or ebx, 0x10
push esi
push 0x100
push str..._.._chrome_installer_util_lzma_util.cc
lea ecx, [ebp - 0x44b0]
call fcn.0044bca0
push dword [ebp - 0x40e8]
lea ecx, [eax + 8]
mov edx, str.Error_returned_by_CreateFile:
call fcn.0044c7c0
mov ecx, eax
call fcn.00421ad0
test bl, 0x10
je 0x471e8b
lea ecx, [ebp - 0x44b0]
call fcn.0044bd90
mov eax, dword [ebp - 0x40e4]
mov dword [eax + 0xc], 7
jmp 0x472076
push edi
lea eax, [ebp - 0x414c]
push eax
push dword [ebp - 0x40fc]
mov eax, dword [ebp - 0x40f4]
add eax, dword [ebp - 0x4128]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x472009
mov eax, dword [ebp - 0x40fc]
cmp dword [ebp - 0x414c], eax
jne 0x472009
mov edx, dword [ebp - 0x4194]
test edx, edx
je 0x471f90
mov eax, dword [ebp - 0x415c]
mov ecx, dword [ebp - 0x4140]
test byte [ecx + edx], al
je 0x471f90
mov eax, dword [ebp - 0x4190]
mov ecx, dword [ebp - 0x40f0]
lea eax, [eax + ecx*8]
push eax
push edi
push edi
push dword [ebp - 0x40f8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x471f90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40e8], eax
mov ecx, esi
call fcn.0044bc30
test al, al
je 0x471f62
or ebx, 0x40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x113
push str..._.._chrome_installer_util_lzma_util.cc
lea ecx, [ebp - 0x4618]
call fcn.0044c6e0
lea ecx, [eax + 0x10]
mov edx, str.Error_returned_by_SetFileTime
call fcn.0044c7c0
test bl, 0x40
je 0x471f72
lea ecx, [ebp - 0x4618]
call fcn.0044c710
push dword [ebp - 0x40f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40e4]
mov dword [eax + 0xc], 9
jmp 0x472076
push dword [ebp - 0x40f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x471dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40e8], eax
mov ecx, esi
call fcn.0044bc30
test al, al
je 0x471feb
or ebx, 0x80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x11b
push str..._.._chrome_installer_util_lzma_util.cc
lea ecx, [ebp - 0x46d0]
call fcn.0044c6e0
lea ecx, [eax + 0x10]
mov edx, str.Error_returned_by_CloseHandle
call fcn.0044c7c0
test bl, bl
jns 0x471ffa
lea ecx, [ebp - 0x46d0]
call fcn.0044c710
mov eax, dword [ebp - 0x40e4]
mov dword [eax + 0xc], 0xa
jmp 0x472076
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40e8], eax
mov ecx, esi
call fcn.0044bc30
test al, al
je 0x47204d
or ebx, 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x109
push str..._.._chrome_installer_util_lzma_util.cc
lea ecx, [ebp - 0x4788]
call fcn.0044c6e0
lea ecx, [eax + 0x10]
mov edx, str.Error_returned_by_WriteFile
call fcn.0044c7c0
test bl, 0x20
je 0x47205d
lea ecx, [ebp - 0x4788]
call fcn.0044c710
push dword [ebp - 0x40f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40e4]
mov dword [eax + 0xc], 8
lea ecx, [ebp - 0x34]
call fcn.0043ef40
lea ecx, [ebp - 0x410c]
call fcn.004721a8
push dword [ebp - 0x40f4]
lea eax, [ebp - 0xc0]
push eax
call dword [ebp - 0xbc]
pop ecx
pop ecx
lea edx, [ebp - 0x4130]
lea ecx, [ebp - 0x41f0]
call fcn.004901cd
lea ecx, [ebp - 0xc0]
call fcn.004833c8
mov eax, dword [ebp - 0x40e8]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret 8