Function at 0x4417ca
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x41c4
call fcn.004705b0
mov eax, dword [0x4a22d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x4098], eax
mov dword [ebp - 0x4094], ebx
mov eax, dword [eax]
mov dword [ebp - 0x40a8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x40ac], ecx
push esi
push edi
test eax, eax
jne 0x441814
push 6
pop eax
jmp 0x441d78
mov dword [ebp - 0x40bc], eax
lea eax, [ebp - 0x4068]
push ebx
push eax
mov dword [ebp - 0x40c4], 0x441731
mov dword [ebp - 0x40c0], 0x44174a
call fcn.00467773
pop ecx
lea eax, [ebp - 0x40c4]
mov dword [ebp - 0x407c], 0x4697c2
pop ecx
mov dword [ebp - 0x4058], eax
mov dword [ebp - 0x4078], 0x4697da
mov dword [ebp - 0x40b4], 0x4697c2
mov dword [ebp - 0x40b0], 0x4697da
call fcn.004697fc
lea eax, [ebp - 0x4114]
push eax
call fcn.00467cb0
lea eax, [ebp - 0x40b4]
push eax
lea eax, [ebp - 0x407c]
push eax
lea eax, [ebp - 0x4068]
push eax
lea eax, [ebp - 0x4114]
push eax
call fcn.00467cdc
mov edi, eax
add esp, 0x14
test edi, edi
je 0x441902
call fcn.00409a00
push 2
pop esi
cmp eax, esi
jg 0x4418e9
push esi
push 0x97
xor ebx, ebx
lea ecx, [ebp - 0x41c4]
push str.c:_b_build_slavewin_build_srcchromeinstallerutillzma_util.cc
inc ebx
call fcn.00409a70
push edi
add eax, 8
push str.Error_returned_by_SzArchiveOpen:
push eax
call fcn.0040a340
pop ecx
pop ecx
mov ecx, eax
call fcn.0040a600
test bl, 1
je 0x44180c
lea ecx, [ebp - 0x41c4]
call fcn.00409ac0
jmp 0x44180c
or dword [ebp - 0x40a4], 0xffffffff
mov ecx, ebx
mov dword [ebp - 0x4074], ebx
mov dword [ebp - 0x40b8], ebx
mov dword [ebp - 0x4070], ecx
cmp dword [ebp - 0x40f8], ecx
jbe 0x441d4d
mov edx, ebx
push 2
mov dword [ebp - 0x408c], edx
pop esi
mov eax, dword [ebp - 0x4104]
add eax, edx
mov dword [ebp - 0x409c], eax
lea eax, [ebp - 0x40b4]
push eax
lea eax, [ebp - 0x407c]
push eax
lea eax, [ebp - 0x4090]
push eax
lea eax, [ebp - 0x40a0]
push eax
lea eax, [ebp - 0x40b8]
push eax
lea eax, [ebp - 0x4074]
push eax
lea eax, [ebp - 0x40a4]
push eax
push ecx
lea eax, [ebp - 0x4068]
push eax
lea eax, [ebp - 0x4114]
push eax
call fcn.004678c3
mov edi, eax
add esp, 0x28
test edi, edi
jne 0x441d01
push ebx
push dword [ebp - 0x4070]
lea eax, [ebp - 0x4114]
push eax
call fcn.00467c49
add esp, 0xc
cmp eax, 1
jb 0x441cca
push eax
lea ecx, [ebp - 0x4088]
call fcn.004415a8
push dword [ebp - 0x4088]
lea eax, [ebp - 0x4114]
push dword [ebp - 0x4070]
push eax
call fcn.00467c49
mov eax, dword [ebp - 0x4084]
lea ecx, [ebp - 0x34]
add esp, 0xc
add eax, 0xfffffffe
push eax
push dword [ebp - 0x4088]
call fcn.004414f7
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00406d60
lea eax, [ebp - 0x1c]
push eax
push ecx
push ecx
mov ecx, esp
push dword [ebp - 0x40a8]
call fcn.00406d60
lea ecx, [ebp - 0x4c]
call fcn.004054f0
mov ecx, eax
call fcn.00405ea0
lea ecx, [ebp - 0x4c]
call fcn.00405570
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00408120
mov eax, dword [ebp - 0x40ac]
test eax, eax
je 0x441a4d
lea ecx, [ebp - 0x1c]
cmp eax, ecx
je 0x441a4d
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, eax
call fcn.00407bd0
mov eax, dword [ebp - 0x409c]
cmp byte [eax + 0x19], bl
je 0x441a6c
mov ecx, dword [ebp - 0x4098]
lea eax, [ebp - 0x1c]
push eax
call fcn.0044163d
jmp 0x441b2e
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405cb0
mov ecx, dword [ebp - 0x4098]
push eax
call fcn.0044163d
lea ecx, [ebp - 0x34]
call fcn.00405570
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push ebx
cmovae eax, dword [ebp - 0x1c]
push 0x80
push esi
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x406c], eax
cmp eax, 0xffffffff
je 0x441c61
push ebx
lea eax, [ebp - 0x4094]
push eax
push dword [ebp - 0x4090]
mov eax, dword [ebp - 0x40a0]
add eax, dword [ebp - 0x4074]
push eax
push dword [ebp - 0x406c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x441c0e
mov eax, dword [ebp - 0x4094]
cmp eax, dword [ebp - 0x4090]
jne 0x441c0e
mov eax, dword [ebp - 0x409c]
cmp byte [eax + 0x1c], bl
je 0x441b1a
push eax
push ebx
push ebx
push dword [ebp - 0x406c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x441b6e
push dword [ebp - 0x406c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x441bc4
lea ecx, [ebp - 0x1c]
call fcn.00405570
lea ecx, [ebp - 0x4088]
call fcn.0045d646
mov ecx, dword [ebp - 0x4070]
mov edx, dword [ebp - 0x408c]
inc ecx
add edx, 0x20
mov dword [ebp - 0x4070], ecx
mov dword [ebp - 0x408c], edx
cmp ecx, dword [ebp - 0x40f8]
jb 0x441934
jmp 0x441d4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x406c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00409a00
cmp eax, esi
jg 0x441bbc
push 0x20
pop ebx
push esi
push 0xdb
push str.c:_b_build_slavewin_build_srcchromeinstallerutillzma_util.cc
lea ecx, [ebp - 0x41c4]
call fcn.00409a70
push edi
add eax, 8
push str.Error_returned_by_SetFileTime:
push eax
call fcn.0040a340
pop ecx
pop ecx
mov ecx, eax
call fcn.0040a600
test bl, 0x20
jmp 0x441ca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00409a00
cmp eax, esi
jg 0x441c06
push 0x40
pop ebx
push esi
push 0xe1
push str.c:_b_build_slavewin_build_srcchromeinstallerutillzma_util.cc
lea ecx, [ebp - 0x41c4]
call fcn.00409a70
push edi
add eax, 8
push str.Error_returned_by_CloseHandle:
push eax
call fcn.0040a340
pop ecx
pop ecx
mov ecx, eax
call fcn.0040a600
test bl, 0x40
jmp 0x441ca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x406c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00409a00
cmp eax, esi
jg 0x441c5c
push 0x10
pop ebx
push esi
push 0xd2
push str.c:_b_build_slavewin_build_srcchromeinstallerutillzma_util.cc
lea ecx, [ebp - 0x41c4]
call fcn.00409a70
push edi
add eax, 8
push str.Error_returned_by_WriteFile:
push eax
call fcn.0040a340
pop ecx
pop ecx
mov ecx, eax
call fcn.0040a600
test bl, 0x10
jmp 0x441ca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00409a00
cmp eax, esi
jg 0x441ca2
push 8
pop ebx
push esi
push 0xc9
push str.c:_b_build_slavewin_build_srcchromeinstallerutillzma_util.cc
lea ecx, [ebp - 0x41c4]
call fcn.00409a70
push edi
add eax, ebx
push str.Error_returned_by_CreateFile:
push eax
call fcn.0040a340
pop ecx
pop ecx
mov ecx, eax
call fcn.0040a600
test bl, 8
je 0x441cb2
lea ecx, [ebp - 0x41c4]
call fcn.00409ac0
lea ecx, [ebp - 0x1c]
call fcn.00405570
lea ecx, [ebp - 0x4088]
call fcn.0045d646
jmp 0x441d4d
call fcn.00409a00
cmp eax, esi
jg 0x441cfc
push 4
pop ebx
push esi
push 0xaf
push str.c:_b_build_slavewin_build_srcchromeinstallerutillzma_util.cc
lea ecx, [ebp - 0x41c4]
call fcn.00409a70
add eax, 8
push str.Couldnt_get_file_name
push eax
call fcn.0040a340
pop ecx
pop ecx
test bl, 4
jmp 0x441d3d
call fcn.00409a00
cmp eax, esi
jg 0x441d3a
push esi
push 0xa8
push str.c:_b_build_slavewin_build_srcchromeinstallerutillzma_util.cc
lea ecx, [ebp - 0x41c4]
mov ebx, esi
call fcn.00409a70
push edi
add eax, 8
push str.Error_returned_by_SzExtract:
push eax
call fcn.0040a340
pop ecx
pop ecx
mov ecx, eax
call fcn.0040a600
test bl, 2
je 0x441d4a
lea ecx, [ebp - 0x41c4]
call fcn.00409ac0
push 6
pop edi
push dword [ebp - 0x4074]
lea eax, [ebp - 0x407c]
push eax
call dword [ebp - 0x4078]
lea eax, [ebp - 0x407c]
push eax
lea eax, [ebp - 0x4114]
push eax
call fcn.00467bfd
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret 8