Function at 0x43e2c3
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x41d4
call fcn.004703d0
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x40a8], eax
mov eax, dword [eax]
xor ebx, ebx
mov dword [ebp - 0x40c0], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x40c4], ecx
mov dword [ebp - 0x4078], ebx
cmp eax, ebx
jne 0x43e327
push 6
mov dword [0x4a0128], 1
mov dword [0x4a012c], ebx
mov dword [0x4a0130], ebx
mov dword [0x4a0134], ebx
pop eax
jmp 0x43e990
push esi
push edi
mov dword [ebp - 0x40cc], eax
lea eax, [ebp - 0x4074]
push ebx
push eax
mov dword [ebp - 0x40d4], 0x43da16
mov dword [ebp - 0x40d0], 0x43d998
call fcn.00467a79
pop ecx
lea eax, [ebp - 0x40d4]
pop ecx
mov dword [ebp - 0x4064], eax
mov dword [ebp - 0x408c], 0x4678bf
mov dword [ebp - 0x4088], 0x4678d7
mov dword [ebp - 0x40b8], 0x4678bf
mov dword [ebp - 0x40b4], 0x4678d7
call fcn.00467847
lea eax, [ebp - 0x4124]
push eax
call fcn.00465d0f
lea eax, [ebp - 0x40b8]
push eax
lea eax, [ebp - 0x408c]
push eax
lea eax, [ebp - 0x4074]
push eax
lea eax, [ebp - 0x4124]
push eax
call fcn.00467653
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x43e43b
call fcn.0040ab90
push 2
pop edi
cmp eax, edi
jg 0x43e405
push edi
push 0xa8
push str.installer_tdsetuputillzma_util.cc
lea ecx, [ebp - 0x41d4]
mov dword [ebp - 0x4078], 1
call fcn.0040add0
push esi
add eax, 8
push str.Error_returned_by_SzArchiveOpen:
push eax
call fcn.0040b670
pop ecx
pop ecx
mov ecx, eax
call fcn.00406800
test byte [ebp - 0x4078], 1
je 0x43e419
lea ecx, [ebp - 0x41d4]
call fcn.0040ae20
movzx eax, si
push 6
mov dword [0x4a0134], eax
mov dword [0x4a0128], edi
mov dword [0x4a012c], ebx
mov dword [0x4a0130], ebx
pop eax
jmp 0x43e98e
or dword [ebp - 0x40c8], 0xffffffff
xor edi, edi
mov dword [ebp - 0x4080], ebx
mov dword [ebp - 0x40b0], ebx
mov dword [ebp - 0x407c], edi
cmp dword [ebp - 0x4108], ebx
jbe 0x43e963
mov dword [ebp - 0x4084], ebx
cmp byte [0x505db0], bl
jne 0x43e963
mov ecx, dword [ebp - 0x4084]
add ecx, dword [ebp - 0x4114]
lea eax, [ebp - 0x40b8]
push eax
lea eax, [ebp - 0x408c]
push eax
lea eax, [ebp - 0x40a4]
push eax
lea eax, [ebp - 0x40ac]
push eax
lea eax, [ebp - 0x40b0]
push eax
lea eax, [ebp - 0x4080]
push eax
lea eax, [ebp - 0x40c8]
push eax
push edi
lea eax, [ebp - 0x4074]
push eax
lea eax, [ebp - 0x4124]
push eax
mov dword [ebp - 0x40a0], ecx
call fcn.00467682
mov esi, eax
add esp, 0x28
cmp esi, ebx
jne 0x43e6a0
push ebx
lea eax, [ebp - 0x4124]
push edi
push eax
call fcn.00466cb9
add esp, 0xc
cmp eax, 1
jb 0x43e71a
push eax
lea ecx, [ebp - 0x409c]
mov dword [ebp - 0x409c], ebx
mov dword [ebp - 0x4098], ebx
mov dword [ebp - 0x4094], ebx
call fcn.0043dc67
push dword [ebp - 0x409c]
lea eax, [ebp - 0x4124]
push edi
push eax
call fcn.00466cb9
mov eax, dword [ebp - 0x4098]
add esp, 0xc
add eax, 0xfffffffe
push eax
push dword [ebp - 0x409c]
lea ecx, [ebp - 0x3c]
call fcn.0043dcd6
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x40c0]
lea ecx, [ebp - 0x58]
call fcn.00401f50
mov ecx, eax
call fcn.00401a30
lea ecx, [ebp - 0x58]
call fcn.00401f80
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.00402b70
mov ecx, dword [ebp - 0x40c4]
cmp ecx, ebx
je 0x43e581
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x20]
push eax
call fcn.00402710
mov eax, dword [ebp - 0x40a0]
cmp byte [eax + 0x19], bl
je 0x43e5b3
mov ecx, dword [ebp - 0x40a8]
lea eax, [ebp - 0x20]
push eax
call fcn.0043e279
lea ecx, [ebp - 0x20]
call fcn.00401f80
lea ecx, [ebp - 0x409c]
call fcn.0041b130
jmp 0x43e681
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
call fcn.004018f0
mov ecx, dword [ebp - 0x40a8]
push eax
call fcn.0043e279
lea ecx, [ebp - 0x3c]
call fcn.00401f80
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x43e5df
lea eax, [ebp - 0x20]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43e77b
push ebx
lea eax, [ebp - 0x40bc]
push eax
mov eax, dword [ebp - 0x40ac]
push dword [ebp - 0x40a4]
add eax, dword [ebp - 0x4080]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43e8c9
mov eax, dword [ebp - 0x40bc]
cmp eax, dword [ebp - 0x40a4]
jne 0x43e8c9
mov eax, dword [ebp - 0x40a0]
cmp byte [eax + 0x1c], bl
je 0x43e659
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x43e7e9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x43e85e
lea ecx, [ebp - 0x20]
call fcn.00401f80
lea ecx, [ebp - 0x409c]
call fcn.0041b130
mov edi, dword [ebp - 0x407c]
add dword [ebp - 0x4084], 0x20
inc edi
mov dword [ebp - 0x407c], edi
cmp edi, dword [ebp - 0x4108]
jb 0x43e468
jmp 0x43e963
call fcn.0040ab90
push 2
pop ecx
cmp eax, ecx
jg 0x43e6e0
push ecx
push 0xba
mov dword [ebp - 0x4078], ecx
push str.installer_tdsetuputillzma_util.cc
lea ecx, [ebp - 0x41d4]
call fcn.0040add0
push esi
add eax, 8
push str.Error_returned_by_SzExtract:
push eax
call fcn.0040b670
pop ecx
pop ecx
mov ecx, eax
call fcn.00406800
test byte [ebp - 0x4078], 2
je 0x43e6f4
lea ecx, [ebp - 0x41d4]
call fcn.0040ae20
movzx eax, si
mov dword [0x4a0128], 3
mov dword [0x4a0134], eax
push 6
mov dword [0x4a0130], ebx
mov dword [0x4a012c], edi
pop esi
jmp 0x43e963
call fcn.0040ab90
cmp eax, 2
jg 0x43e755
push 2
push 0xc2
push str.installer_tdsetuputillzma_util.cc
lea ecx, [ebp - 0x41d4]
mov dword [ebp - 0x4078], 4
call fcn.0040add0
add eax, 8
push str.Couldnt_get_file_name
push eax
call fcn.0040b670
pop ecx
pop ecx
test byte [ebp - 0x4078], 4
je 0x43e769
lea ecx, [ebp - 0x41d4]
call fcn.0040ae20
mov dword [0x4a0128], 4
mov dword [0x4a0134], ebx
jmp 0x43e706
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0040ab90
cmp eax, 2
jg 0x43e7c6
push 2
push 0xdd
push str.installer_tdsetuputillzma_util.cc
lea ecx, [ebp - 0x41d4]
mov dword [ebp - 0x4078], 8
call fcn.0040add0
push esi
add eax, 8
push str.Error_returned_by_CreateFile:
push eax
call fcn.0040b670
pop ecx
pop ecx
mov ecx, eax
call fcn.00406800
test byte [ebp - 0x4078], 8
je 0x43e7da
lea ecx, [ebp - 0x41d4]
call fcn.0040ae20
mov dword [0x4a0128], 5
jmp 0x43e939
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040ab90
cmp eax, 2
jg 0x43e83b
push 2
push 0xf1
push str.installer_tdsetuputillzma_util.cc
lea ecx, [ebp - 0x41d4]
mov dword [ebp - 0x4078], 0x20
call fcn.0040add0
push esi
add eax, 8
push str.Error_returned_by_SetFileTime:
push eax
call fcn.0040b670
pop ecx
pop ecx
mov ecx, eax
call fcn.00406800
test byte [ebp - 0x4078], 0x20
je 0x43e84f
lea ecx, [ebp - 0x41d4]
call fcn.0040ae20
mov dword [0x4a0128], 7
jmp 0x43e939
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0040ab90
cmp eax, 2
jg 0x43e8a9
push 2
push 0xf8
push str.installer_tdsetuputillzma_util.cc
lea ecx, [ebp - 0x41d4]
mov dword [ebp - 0x4078], 0x40
call fcn.0040add0
push esi
add eax, 8
push str.Error_returned_by_CloseHandle:
push eax
call fcn.0040b670
pop ecx
pop ecx
mov ecx, eax
call fcn.00406800
test byte [ebp - 0x4078], 0x40
je 0x43e8bd
lea ecx, [ebp - 0x41d4]
call fcn.0040ae20
mov dword [0x4a0128], 8
jmp 0x43e939
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040ab90
cmp eax, 2
jg 0x43e91b
push 2
push 0xe7
push str.installer_tdsetuputillzma_util.cc
lea ecx, [ebp - 0x41d4]
mov dword [ebp - 0x4078], 0x10
call fcn.0040add0
push esi
add eax, 8
push str.Error_returned_by_WriteFile:
push eax
call fcn.0040b670
pop ecx
pop ecx
mov ecx, eax
call fcn.00406800
test byte [ebp - 0x4078], 0x10
je 0x43e92f
lea ecx, [ebp - 0x41d4]
call fcn.0040ae20
mov dword [0x4a0128], 6
mov eax, dword [ebp - 0x407c]
lea ecx, [ebp - 0x20]
mov dword [0x4a012c], eax
mov dword [0x4a0130], esi
mov dword [0x4a0134], ebx
call fcn.00401f80
lea ecx, [ebp - 0x409c]
call fcn.0041b130
push dword [ebp - 0x4080]
lea eax, [ebp - 0x408c]
push eax
call dword [ebp - 0x4088]
lea eax, [ebp - 0x408c]
push eax
lea eax, [ebp - 0x4124]
push eax
call fcn.00465d39
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046e0cd
leave
ret 8