Function at 0x4504ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x41c4
call fcn.004aa360
mov eax, dword [0x4f5470]
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
test eax, eax
jne 0x4504f5
push 6
pop eax
jmp 0x450a4a
push esi
push edi
mov dword [ebp - 0x40bc], eax
lea eax, [ebp - 0x4068]
push ebx
push eax
mov dword [ebp - 0x40c4], 0x450414
mov dword [ebp - 0x40c0], 0x45042d
call fcn.0048056c
pop ecx
lea eax, [ebp - 0x40c4]
mov dword [ebp - 0x407c], 0x4825bb
pop ecx
mov dword [ebp - 0x4058], eax
mov dword [ebp - 0x4078], 0x4825d3
mov dword [ebp - 0x40b4], 0x4825bb
mov dword [ebp - 0x40b0], 0x4825d3
call fcn.004825f5
lea eax, [ebp - 0x4114]
push eax
call fcn.00480aa9
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.00480ad5
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4505e4
call fcn.0040a000
push 2
pop esi
cmp eax, esi
jg 0x4505cc
push esi
push 0x97
xor ebx, ebx
lea ecx, [ebp - 0x41c4]
push str.d:webapps_b_build_slave_repo_build_srcchromeinstallerutillzma_util.cc
inc ebx
call fcn.0040a070
push edi
add eax, 8
push str.Error_returned_by_SzArchiveOpen:
push eax
call fcn.0040a940
pop ecx
pop ecx
mov ecx, eax
call fcn.0040abc0
test bl, 1
je 0x4505dc
lea ecx, [ebp - 0x41c4]
call fcn.0040a0c0
push 6
pop eax
jmp 0x450a48
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 0x450a1d
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.004806bc
mov edi, eax
add esp, 0x28
test edi, edi
jne 0x4509d1
push ebx
push dword [ebp - 0x4070]
lea eax, [ebp - 0x4114]
push eax
call fcn.00480a42
add esp, 0xc
cmp eax, 1
jb 0x45099a
push eax
lea ecx, [ebp - 0x4088]
call fcn.004502ad
push dword [ebp - 0x4088]
lea eax, [ebp - 0x4114]
push dword [ebp - 0x4070]
push eax
call fcn.00480a42
mov eax, dword [ebp - 0x4084]
lea ecx, [ebp - 0x34]
add esp, 0xc
add eax, 0xfffffffe
push eax
push dword [ebp - 0x4088]
call fcn.004501fc
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x40a8]
lea ecx, [ebp - 0x4c]
call fcn.004055c0
mov ecx, eax
call fcn.00405dd0
lea ecx, [ebp - 0x4c]
call fcn.00405610
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00408290
mov eax, dword [ebp - 0x40ac]
test eax, eax
je 0x45071d
lea ecx, [ebp - 0x1c]
cmp eax, ecx
je 0x45071d
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, eax
call fcn.00407ca0
mov eax, dword [ebp - 0x409c]
cmp byte [eax + 0x19], bl
je 0x45073c
mov ecx, dword [ebp - 0x4098]
lea eax, [ebp - 0x1c]
push eax
call fcn.00450320
jmp 0x4507fe
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405c20
mov ecx, dword [ebp - 0x4098]
push eax
call fcn.00450320
lea ecx, [ebp - 0x34]
call fcn.00405610
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 0x450931
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 0x4508de
mov eax, dword [ebp - 0x4094]
cmp eax, dword [ebp - 0x4090]
jne 0x4508de
mov eax, dword [ebp - 0x409c]
cmp byte [eax + 0x1c], bl
je 0x4507ea
push eax
push ebx
push ebx
push dword [ebp - 0x406c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x45083e
push dword [ebp - 0x406c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x450894
lea ecx, [ebp - 0x1c]
call fcn.00405610
lea ecx, [ebp - 0x4088]
call fcn.00467e4a
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 0x450616
jmp 0x450a1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x406c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040a000
cmp eax, esi
jg 0x45088c
push 0x20
pop ebx
push esi
push 0xdb
push str.d:webapps_b_build_slave_repo_build_srcchromeinstallerutillzma_util.cc
lea ecx, [ebp - 0x41c4]
call fcn.0040a070
push edi
add eax, 8
push str.Error_returned_by_SetFileTime:
push eax
call fcn.0040a940
pop ecx
pop ecx
mov ecx, eax
call fcn.0040abc0
test bl, 0x20
jmp 0x450975
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.0040a000
cmp eax, esi
jg 0x4508d6
push 0x40
pop ebx
push esi
push 0xe1
push str.d:webapps_b_build_slave_repo_build_srcchromeinstallerutillzma_util.cc
lea ecx, [ebp - 0x41c4]
call fcn.0040a070
push edi
add eax, 8
push str.Error_returned_by_CloseHandle:
push eax
call fcn.0040a940
pop ecx
pop ecx
mov ecx, eax
call fcn.0040abc0
test bl, 0x40
jmp 0x450975
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x406c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040a000
cmp eax, esi
jg 0x45092c
push 0x10
pop ebx
push esi
push 0xd2
push str.d:webapps_b_build_slave_repo_build_srcchromeinstallerutillzma_util.cc
lea ecx, [ebp - 0x41c4]
call fcn.0040a070
push edi
add eax, 8
push str.Error_returned_by_WriteFile:
push eax
call fcn.0040a940
pop ecx
pop ecx
mov ecx, eax
call fcn.0040abc0
test bl, 0x10
jmp 0x450975
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.0040a000
cmp eax, esi
jg 0x450972
push 8
pop ebx
push esi
push 0xc9
push str.d:webapps_b_build_slave_repo_build_srcchromeinstallerutillzma_util.cc
lea ecx, [ebp - 0x41c4]
call fcn.0040a070
push edi
add eax, ebx
push str.Error_returned_by_CreateFile:
push eax
call fcn.0040a940
pop ecx
pop ecx
mov ecx, eax
call fcn.0040abc0
test bl, 8
je 0x450982
lea ecx, [ebp - 0x41c4]
call fcn.0040a0c0
lea ecx, [ebp - 0x1c]
call fcn.00405610
lea ecx, [ebp - 0x4088]
call fcn.00467e4a
jmp 0x450a1d
call fcn.0040a000
cmp eax, esi
jg 0x4509cc
push 4
pop ebx
push esi
push 0xaf
push str.d:webapps_b_build_slave_repo_build_srcchromeinstallerutillzma_util.cc
lea ecx, [ebp - 0x41c4]
call fcn.0040a070
add eax, 8
push str.Couldnt_get_file_name
push eax
call fcn.0040a940
pop ecx
pop ecx
test bl, 4
jmp 0x450a0d
call fcn.0040a000
cmp eax, esi
jg 0x450a0a
push esi
push 0xa8
push str.d:webapps_b_build_slave_repo_build_srcchromeinstallerutillzma_util.cc
lea ecx, [ebp - 0x41c4]
mov ebx, esi
call fcn.0040a070
push edi
add eax, 8
push str.Error_returned_by_SzExtract:
push eax
call fcn.0040a940
pop ecx
pop ecx
mov ecx, eax
call fcn.0040abc0
test bl, 2
je 0x450a1a
lea ecx, [ebp - 0x41c4]
call fcn.0040a0c0
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.004809f6
add esp, 0x10
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 8