Function at 0x4026c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x41f0
call fcn.00517f10
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [esp + 0x41e8], eax
mov ebx, dword [ecx]
mov dword [esp + 0xc], ecx
mov eax, dword [ecx + 0x14]
mov edi, 6
mov edx, ebx
or edx, eax
je 0x40311a
xorps xmm0, xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmmword [esp + 0x100], xmm0
test eax, eax
je 0x402744
lea esi, [esp + 0x100]
mov dword [esi + 8], eax
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x18], eax
mov dword [esi], 0x403a00
mov dword [esi + 4], 0x403a40
jmp 0x40275b
lea esi, [esp + 0x12c]
mov dword [esi + 8], ebx
mov dword [esi], 0x403b10
mov dword [esi + 4], 0x403ba0
lea ebx, [esp + 0x1cc]
push 0
push ebx
call fcn.0049cf19
add esp, 8
mov dword [ebx + 0x10], esi
lea esi, [esp + 0x140]
mov dword [esi], 0x49a120
mov dword [esi + 4], 0x49a140
lea edi, [esp + 0x138]
mov dword [edi], 0x49a120
mov dword [edi + 4], 0x49a140
call fcn.0049cd8e
lea eax, [esp + 0x148]
push eax
call fcn.0049a150
add esp, 4
push edi
push esi
mov esi, ebx
push ebx
lea eax, [esp + 0x154]
push eax
call fcn.0049a6de
add esp, 0x10
test eax, eax
je 0x40281c
mov ebx, eax
mov edi, 6
push 2
call fcn.00473360
add esp, 4
test al, al
je 0x40311a
lea esi, [esp + 0x58]
mov ecx, esi
push 2
push 0x194
push str..._.._chrome_installer_tdsetup_qihoo_util_util_lzma_util.cc
call fcn.004733f0
lea eax, [esp + 0x60]
push str.Error_returned_by_SzArchiveOpen:
push eax
call fcn.00473e90
add esp, 8
mov ecx, eax
push ebx
call fcn.00453080
mov ecx, esi
call fcn.00473790
jmp 0x40311a
xor edi, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x4c], edi
cmp dword [esp + 0x188], edi
je 0x403068
test byte [0x70bd96], 1
lea ebx, [esp + 0x148]
jne 0x4030fa
movzx eax, byte [ebp + 0x14]
add eax, eax
add eax, 2
mov dword [esp + 4], eax
xor edx, edx
mov eax, dword [esp + 0x190]
mov ecx, edx
shr ecx, 3
movzx eax, byte [eax + ecx]
mov dword [esp + 0x18], eax
mov ecx, edx
and cl, 7
mov eax, 0x80
shr eax, cl
mov dword [esp + 8], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x144]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x68]
push eax
push edx
push esi
push ebx
mov esi, edx
call fcn.0049b88f
add esp, 0x28
test eax, eax
jne 0x403074
push 0
push esi
push ebx
call fcn.0049b9f6
add esp, 0xc
test eax, eax
je 0x4030b7
lea ecx, [esp + 0x34]
push eax
call fcn.00403c1c
push dword [esp + 0x34]
mov dword [esp + 0x18], esi
push esi
push ebx
call fcn.0049b9f6
add esp, 0xc
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
add ebx, 0xfffffffe
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, ebx
sub eax, edi
sar eax, 1
cmp eax, 0x7ffffff0
jae 0x403134
cmp eax, 4
ja 0x40292b
mov byte [esp + 0x33], al
lea esi, [esp + 0x28]
mov eax, esi
jmp 0x40296f
mov dword [esp + 0x10], eax
lea esi, [eax + 8]
and esi, 0xfffffff8
js 0x40313d
lea eax, [esi + esi]
push eax
call fcn.00517b56
add esp, 4
mov dword [esp + 0x28], eax
or esi, 0x80000000
mov dword [esp + 0x30], esi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
lea esi, [esp + 0x28]
jmp 0x40296f
movzx ecx, word [edi]
mov word [eax], cx
add edi, 2
add eax, 2
cmp ebx, edi
jne 0x402963
mov word [eax], 0
mov ecx, esi
push 0
push 0x2f
call fcn.004698a2
cmp eax, 0xffffffff
lea edi, [esp + 0x58]
je 0x4029f2
inc eax
mov ecx, edi
lea edx, [esp + 0x34]
push edx
push 0xffffffffffffffff
push eax
push esi
call fcn.00468b4c
cmp byte [esp + 0x33], 0
js 0x4029b2
mov word [esp + 0x28], 0
mov byte [esp + 0x33], 0
jmp 0x4029de
mov eax, dword [esp + 0x28]
mov word [eax], 0
mov dword [esp + 0x2c], 0
cmp byte [esp + 0x33], 0
jns 0x4029de
push dword [esp + 0x28]
call fcn.00517bd6
add esp, 4
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x30], eax
movsd xmm0, qword [esp + 0x58]
movsd qword [esp + 0x28], xmm0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xb]
test al, al
jns 0x402a05
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, edi
push eax
push edx
call fcn.0046ed80
movzx eax, byte [esp + 0x33]
test al, al
jns 0x402a1f
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
and dword [esp + 8], ecx
mov ecx, edi
push eax
push esi
lea esi, [esp + 0x24]
push esi
call fcn.0046fbd0
mov ecx, edi
call fcn.0046ee40
mov ecx, esi
push edi
call fcn.0046f6e0
mov ecx, dword [esp + 0xc]
push edi
call fcn.00403c5e
mov ebx, eax
mov ecx, edi
call fcn.0046ee40
test bl, bl
jne 0x402a7e
cmp word [0x70bd94], 0
jne 0x402a7e
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [eax + 4]
sub eax, dword [ecx]
shr eax, 2
imul eax, eax, 0xffffaaab
mov word [0x70bd94], ax
cmp dword [esp + 8], 0
lea ebx, [esp + 0x148]
je 0x402aaa
cmp word [str.Chrome_bin], 0
je 0x402acc
xor ecx, ecx
lea eax, [ecx + 1]
cmp word [ecx + ecx + 0x648fae], 0
mov ecx, eax
jne 0x402a98
jmp 0x402ace
cmp word [str.360chrome.exe], 0
je 0x402b44
xor ecx, ecx
lea eax, [ecx + 1]
cmp word [ecx + ecx + 0x649620], 0
mov ecx, eax
jne 0x402aba
jmp 0x402b46
xor eax, eax
movzx ecx, byte [esp + 0x27]
mov edx, esi
test cl, cl
jns 0x402ae1
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor edi, edi
mov esi, 4
push 1
push eax
push str.Chrome_bin
push ecx
push edx
call fcn.0047b2e0
add esp, 0x14
test al, al
jne 0x402ee7
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
call fcn.00403c5e
test al, al
jne 0x402ee7
cmp word [0x70bd94], 0
jne 0x402ee7
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [eax + 4]
sub eax, dword [ecx]
shr eax, 2
imul eax, eax, 0xffffaaab
mov word [0x70bd94], ax
jmp 0x402ee7
xor eax, eax
movzx ecx, byte [esp + 0x27]
mov edx, esi
test cl, cl
jns 0x402b59
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 1
push eax
push str.360chrome.exe
push ecx
push edx
call fcn.0047b2e0
add esp, 0x14
test al, al
je 0x402bc3
mov ecx, esi
push edi
call fcn.0046f6e0
mov ecx, esi
push edi
call fcn.0046ee80
mov ecx, edi
call fcn.0046ee40
cmp word [str.unpack_360chrome.exe], 0
je 0x402ba4
xor ecx, ecx
lea eax, [ecx + 1]
cmp word [ecx + ecx + 0x64963c], 0
mov ecx, eax
jne 0x402b92
jmp 0x402ba6
xor eax, eax
mov ecx, esi
push eax
push str.unpack_360chrome.exe
push edi
call fcn.0046fbd0
mov ecx, esi
push edi
call fcn.0046ee80
mov ecx, edi
call fcn.0046ee40
movzx eax, byte [esp + 0x27]
mov ecx, esi
test al, al
jns 0x402bd6
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push 1
push 0xa
push str.chrome.exe
push eax
push ecx
call fcn.0047b2e0
add esp, 0x14
test al, al
je 0x402c41
mov ecx, esi
push edi
call fcn.0046f6e0
mov ecx, esi
push edi
call fcn.0046ee80
mov ecx, edi
call fcn.0046ee40
cmp word [str.unpack_360chrome.exe], 0
je 0x402c22
xor ecx, ecx
lea eax, [ecx + 1]
cmp word [ecx + ecx + 0x64963c], 0
mov ecx, eax
jne 0x402c10
jmp 0x402c24
xor eax, eax
mov ecx, esi
push eax
push str.unpack_360chrome.exe
push edi
call fcn.0046fbd0
mov ecx, esi
push edi
call fcn.0046ee80
mov ecx, edi
call fcn.0046ee40
cmp word [str.wow_helper.exe], 0
je 0x402c5f
xor ecx, ecx
lea eax, [ecx + 1]
cmp word [ecx + ecx + 0x648f28], 0
mov ecx, eax
jne 0x402c4d
jmp 0x402c61
xor eax, eax
movzx ecx, byte [esp + 0x27]
mov edx, esi
test cl, cl
jns 0x402c74
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 1
push eax
push str.wow_helper.exe
push ecx
push edx
call fcn.0047b2e0
add esp, 0x14
test al, al
je 0x402c97
call fcn.0043c094
test al, al
je 0x402db8
cmp byte [esp + 0x27], 0
mov eax, esi
jns 0x402ca4
mov eax, dword [esp + 0x1c]
sub esp, 0x1c
movaps xmm0, xmmword [0x639080]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x402d8a
mov edi, eax
mov eax, dword [esp + 0x54]
add eax, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x4c]
push ecx
push dword [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402d59
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x40]
jne 0x402d59
mov eax, dword [esp + 0x1a4]
cmp byte [eax], 0
je 0x402d26
push dword [esp + 0x1a8]
xor eax, eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x402fec
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402f4f
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x40301e
mov ecx, edi
push esi
mov esi, eax
call fcn.00468aa8
add edi, 0xc
mov dword [esi + 4], edi
jmp 0x403026
mov dword [esp + 8], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ecx + 4]
cmp ebx, dword [ecx + 8]
je 0x402dc4
mov esi, ecx
mov ecx, ebx
lea eax, [esp + 0x1c]
push eax
call fcn.00468aa8
add ebx, 0xc
mov dword [esi + 4], ebx
lea esi, [esp + 0x1c]
jmp 0x402dca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ecx + 4]
cmp ebx, dword [ecx + 8]
je 0x402e69
mov eax, esi
mov esi, ecx
mov ecx, ebx
push eax
call fcn.00468aa8
add ebx, 0xc
mov dword [esi + 4], ebx
jmp 0x402e6f
xor edi, edi
mov esi, 4
jmp 0x402ee7
push esi
call fcn.00404042
lea ebx, [esp + 0x148]
push 2
call fcn.00473360
add esp, 4
test al, al
je 0x402e3a
lea ecx, [esp + 0x58]
push 2
push 0x1f2
push str..._.._chrome_installer_tdsetup_qihoo_util_util_lzma_util.cc
call fcn.004733f0
push str.WriteFile_error__the_file_is
lea eax, [esp + 0x64]
push eax
call fcn.00473e90
add esp, 8
cmp byte [esp + 0x27], 0
jns 0x402e11
mov esi, dword [esp + 0x1c]
push esi
push eax
call fcn.00473e90
add esp, 8
push str.__err_is
push eax
call fcn.00473e90
add esp, 8
mov ecx, eax
push edi
call fcn.00453080
lea ecx, [esp + 0x58]
call fcn.00473790
cmp word [0x70bd94], 0
jne 0x402e5d
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [eax + 4]
sub eax, dword [ecx]
shr eax, 2
imul eax, eax, 0xffffaaab
mov word [0x70bd94], ax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402ee3
push esi
call fcn.00404042
lea ebx, [esp + 0x148]
push 2
call fcn.00473360
add esp, 4
test al, al
je 0x402ee3
lea ecx, [esp + 0x58]
push 2
push 0x1e6
push str..._.._chrome_installer_tdsetup_qihoo_util_util_lzma_util.cc
call fcn.004733f0
push str.CreateFile_error__the_file_is
lea eax, [esp + 0x64]
push eax
call fcn.00473e90
add esp, 8
cmp byte [esp + 0x27], 0
lea ecx, [esp + 0x1c]
jns 0x402eba
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call fcn.00473e90
add esp, 8
push str.__err_is
push eax
call fcn.00473e90
add esp, 8
mov ecx, eax
push edi
call fcn.00453080
lea ecx, [esp + 0x58]
call fcn.00473790
mov esi, dword [esp + 4]
lea ecx, [esp + 0x1c]
call fcn.0046ee40
cmp byte [esp + 0x33], 0
jns 0x402f03
push dword [esp + 0x28]
call fcn.00517bd6
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x402f18
mov dword [esp + 0x38], eax
push eax
call fcn.00517bd6
add esp, 4
or esi, 4
cmp esi, 4
jne 0x4030fa
mov edx, dword [esp + 0x14]
inc edx
cmp edx, dword [esp + 0x188]
jae 0x4030fa
test byte [0x70bd96], 1
lea esi, [esp + 0x1cc]
je 0x40285e
jmp 0x4030fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 2
call fcn.00473360
add esp, 4
test al, al
je 0x402fc0
lea ecx, [esp + 0x58]
push 2
push 0x207
push str..._.._chrome_installer_tdsetup_qihoo_util_util_lzma_util.cc
call fcn.004733f0
push str.CloseHandle_error__the_file_is
lea eax, [esp + 0x64]
push eax
call fcn.00473e90
add esp, 8
cmp byte [esp + 0x27], 0
jns 0x402f97
mov esi, dword [esp + 0x1c]
push esi
push eax
call fcn.00473e90
add esp, 8
push str.__err_is
push eax
call fcn.00473e90
add esp, 8
mov ecx, eax
push edi
call fcn.00453080
lea ecx, [esp + 0x58]
call fcn.00473790
cmp word [0x70bd94], 0
jne 0x402ee3
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [eax + 4]
sub eax, dword [ecx]
shr eax, 2
imul eax, eax, 0xffffaaab
mov word [0x70bd94], ax
jmp 0x402ee3
mov dword [esp + 8], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x40302f
mov esi, ecx
lea eax, [esp + 0x1c]
push eax
call fcn.00468aa8
add esi, 0xc
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], esi
lea esi, [esp + 0x1c]
jmp 0x403037
mov ecx, eax
push esi
call fcn.00404042
xor esi, esi
xor edi, edi
jmp 0x402ee7
mov ecx, eax
push esi
call fcn.00404042
push 2
call fcn.00473360
add esp, 4
test al, al
je 0x402e3a
lea ecx, [esp + 0x58]
push 2
push 0x1fe
push str..._.._chrome_installer_tdsetup_qihoo_util_util_lzma_util.cc
call fcn.004733f0
push str.SetFileTime_error__the_file_is
jmp 0x402df9
lea ebx, [esp + 0x148]
jmp 0x4030fa
mov edi, eax
push 2
call fcn.00473360
add esp, 4
test al, al
je 0x4030f5
lea esi, [esp + 0x58]
mov ecx, esi
push 2
push 0x1a5
push str..._.._chrome_installer_tdsetup_qihoo_util_util_lzma_util.cc
call fcn.004733f0
push str.Error_returned_by_SzExtract:
lea eax, [esp + 0x64]
push eax
call fcn.00473e90
add esp, 8
mov ecx, eax
push edi
call fcn.00453080
jmp 0x4030ee
push 2
call fcn.00473360
add esp, 4
test al, al
je 0x4030f5
lea esi, [esp + 0x58]
mov ecx, esi
push 2
push 0x1ad
push str..._.._chrome_installer_tdsetup_qihoo_util_util_lzma_util.cc
call fcn.004733f0
push str.Couldnt_get_file_name
lea eax, [esp + 0x64]
push eax
call fcn.00473e90
add esp, 8
mov ecx, esi
call fcn.00473790
mov edi, 6
push dword [esp + 0x54]
lea esi, [esp + 0x144]
push esi
call dword [esp + 0x14c]
add esp, 8
push esi
push ebx
call fcn.0049a17d
add esp, 8
mov ecx, dword [esp + 0x41e8]
xor ecx, ebp
call fcn.00517c1a
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
lea ecx, [esp + 0x28]
call fcn.00467d64
call fcn.0061842c