Function at 0x406dd4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x41f8
call fcn.0050d9b0
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x40bc], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x40ac], ebx
push edi
mov edx, dword [esi]
mov dword [ebp - 0x40a4], esi
mov dword [ebp - 0x4084], eax
test edx, edx
jne 0x406e23
cmp dword [esi + 0x10], ebx
jne 0x406e23
push 6
pop eax
jmp 0x4074d0
push 8
xor eax, eax
mov dword [ebp - 0x4074], 0x453ff4
pop ecx
lea edi, [ebp - 0x40f4]
mov dword [ebp - 0x4070], 0x454047
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x406c], 0x454057
mov dword [ebp - 0x4068], 0x4540a1
test ecx, ecx
je 0x406e99
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x40e4], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x40e0], eax
lea eax, [ebp - 0x40f4]
mov dword [ebp - 0x40ec], ecx
mov dword [ebp - 0x40dc], ecx
mov dword [ebp - 0x40f4], 0x40636e
mov dword [ebp - 0x40f0], 0x4062b1
jmp 0x406eb9
mov dword [ebp - 0x40c8], edx
lea eax, [ebp - 0x40d0]
mov dword [ebp - 0x40d0], 0x40624d
mov dword [ebp - 0x40cc], 0x4061cd
mov dword [ebp - 0x4064], eax
mov dword [ebp - 0x409c], 0x4521c3
mov dword [ebp - 0x4098], 0x4521db
mov dword [ebp - 0x40b8], 0x4521c3
mov dword [ebp - 0x40b4], 0x4521db
call fcn.004540d5
lea ecx, [ebp - 0x4144]
call fcn.00452355
lea eax, [ebp - 0x40b8]
push eax
lea eax, [ebp - 0x409c]
push eax
lea edx, [ebp - 0x4074]
call fcn.00453adc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x406f80
lea edx, [ebp - 0x409c]
lea ecx, [ebp - 0x4144]
call fcn.00452384
test edi, edi
je 0x406f80
cmp dword [0x768ca0], 2
jg 0x406f67
push 2
push 0x185
xor ebx, ebx
lea ecx, [ebp - 0x41f4]
push str.e:360chrome37_srcchromeinstallerqihoo_utilutillzma_util.cc
inc ebx
call fcn.0045ce90
push edi
push ecx
mov edx, str.Error_returned_by_SzArchiveOpen:
lea ecx, [eax + 8]
call fcn.0045d6f0
pop ecx
mov ecx, eax
call fcn.0040761a
test bl, 1
je 0x406e1b
lea ecx, [ebp - 0x41f4]
call fcn.0045cee0
jmp 0x406e1b
or dword [ebp - 0x40c0], 0xffffffff
mov ecx, ebx
mov dword [ebp - 0x4094], ebx
mov dword [ebp - 0x40c4], ebx
mov dword [ebp - 0x40a0], ecx
cmp dword [ebp - 0x4128], ecx
jbe 0x4074a8
mov eax, dword [ebp - 0x4134]
add eax, 0x1c
mov dword [ebp - 0x4090], eax
cmp byte [0x5d6fd0], 0
jne 0x4074a8
lea eax, [ebp - 0x40b8]
push eax
lea eax, [ebp - 0x409c]
push eax
lea eax, [ebp - 0x40a8]
push eax
lea eax, [ebp - 0x40b0]
push eax
lea eax, [ebp - 0x40c4]
push eax
lea eax, [ebp - 0x4094]
push eax
lea eax, [ebp - 0x40c0]
push eax
push ecx
lea edx, [ebp - 0x4074]
lea ecx, [ebp - 0x4144]
call fcn.00453da8
mov esi, eax
add esp, 0x20
mov dword [ebp - 0x4088], esi
test esi, esi
jne 0x40745c
mov edi, dword [ebp - 0x40a0]
mov ecx, dword [ebp - 0x4104]
mov eax, dword [ecx + edi*4 + 4]
sub eax, dword [ecx + edi*4]
cmp eax, 1
jb 0x407427
push eax
lea ecx, [ebp - 0x4080]
call fcn.00407775
mov esi, dword [ebp - 0x4080]
lea ecx, [ebp - 0x4144]
push esi
mov edx, edi
call fcn.00453410
mov eax, dword [ebp - 0x407c]
pop ecx
add eax, 0xfffffffe
lea ecx, [ebp - 0x50]
push eax
push esi
call fcn.00408d91
push 1
push ebx
lea eax, [ebp - 0x408c]
mov dword [ebp - 0x408c], 0x2f
push eax
lea ecx, [ebp - 0x50]
call fcn.00407878
cmp eax, 0xffffffff
je 0x4070ae
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004075ee
push eax
lea ecx, [ebp - 0x50]
call fcn.004075c9
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0040536f
push ecx
push ecx
lea eax, [ebp - 0x50]
mov ecx, esp
push eax
call fcn.004050d6
lea eax, [ebp - 0x20]
push eax
push ecx
push ecx
mov ecx, esp
push dword [ebp - 0x40bc]
call fcn.004050d6
lea ecx, [ebp - 0x38]
call fcn.00458fb0
mov ecx, eax
call fcn.00459bb0
lea ecx, [ebp - 0x38]
call fcn.00459030
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.00459820
mov ecx, dword [ebp - 0x40a4]
push eax
call fcn.00407503
mov bl, al
lea ecx, [ebp - 0x38]
neg bl
sbb bl, bl
call fcn.00459030
inc bl
je 0x407130
cmp word [0x5d6fd4], 0
jne 0x407130
mov ecx, dword [ebp - 0x4084]
push 0x18
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cdq
pop ecx
idiv ecx
mov word [0x5d6fd4], ax
mov eax, dword [ebp - 0x4090]
lea ecx, [ebp - 0x38]
cmp byte [eax - 3], 0
je 0x407201
push str.Chrome_bin
call fcn.004058f0
push ecx
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.0045a720
mov bl, al
neg bl
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x38]
xor edi, edi
push edi
push 1
call fcn.0040536f
inc bl
je 0x4071a4
mov ecx, dword [ebp - 0x40a4]
lea eax, [ebp - 0x20]
push eax
call fcn.00407503
test al, al
jne 0x4071a4
cmp word [0x5d6fd4], di
jne 0x4071a4
mov ecx, dword [ebp - 0x4084]
push 0x18
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cdq
pop ecx
idiv ecx
mov word [0x5d6fd4], ax
lea ecx, [ebp - 0x20]
call fcn.00459030
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.0040536f
test esi, esi
je 0x4071d6
push esi
call fcn.0050269b
pop ecx
mov dword [ebp - 0x4080], ebx
mov dword [ebp - 0x407c], ebx
mov dword [ebp - 0x4078], ebx
mov edi, dword [ebp - 0x4088]
mov ecx, dword [ebp - 0x40a0]
add dword [ebp - 0x4090], 0x20
inc ecx
mov dword [ebp - 0x40a0], ecx
cmp ecx, dword [ebp - 0x4128]
jb 0x406fb6
jmp 0x4074a8
push str.360se.exe
call fcn.004058f0
push ecx
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.0045a720
pop ecx
xor edi, edi
lea ecx, [ebp - 0x38]
push edi
push 1
mov bl, al
call fcn.0040536f
test bl, bl
je 0x407280
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.00459820
push eax
lea ecx, [ebp - 0x20]
call fcn.00459060
lea ecx, [ebp - 0x38]
call fcn.00459030
push ecx
push ecx
mov esi, esp
mov eax, str.unpack_360se.exe
push eax
mov dword [esi], eax
call fcn.004049e1
pop ecx
mov dword [esi + 4], eax
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x38]
push eax
call fcn.00459bb0
push eax
lea ecx, [ebp - 0x20]
call fcn.00459060
lea ecx, [ebp - 0x38]
call fcn.00459030
mov esi, dword [ebp - 0x4080]
push str.wow_helper.exe
lea ecx, [ebp - 0x38]
call fcn.004058f0
push ecx
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.0045a720
pop ecx
push edi
push 1
lea ecx, [ebp - 0x38]
mov bl, al
call fcn.0040536f
test bl, bl
je 0x4072b8
call fcn.00434fb1
test al, al
je 0x4071a4
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x4072c4
lea eax, [ebp - 0x20]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x408c], edi
cmp edi, 0xffffffff
jne 0x407333
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x20]
call fcn.00459030
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.0040536f
cmp byte [ebp + 0x10], bl
je 0x407413
test esi, esi
je 0x4071dc
push esi
call fcn.0050269b
pop ecx
mov dword [ebp - 0x4080], ebx
mov dword [ebp - 0x407c], ebx
mov dword [ebp - 0x4078], ebx
jmp 0x4071dc
push ebx
lea eax, [ebp - 0x40ac]
push eax
push dword [ebp - 0x40a8]
mov eax, dword [ebp - 0x40b0]
add eax, dword [ebp - 0x4094]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407382
mov eax, dword [ebp - 0x40a8]
cmp dword [ebp - 0x40ac], eax
jne 0x407382
mov eax, dword [ebp - 0x4090]
cmp byte [eax], bl
je 0x4073bb
add eax, 0xffffffe4
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4073bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp word [0x5d6fd4], bx
jne 0x4073aa
mov ecx, dword [ebp - 0x4084]
push 0x18
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cdq
pop ecx
idiv ecx
mov word [0x5d6fd4], ax
push dword [ebp - 0x408c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4072f1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4073f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp word [0x5d6fd4], bx
jne 0x4072f1
mov ecx, dword [ebp - 0x4084]
push 0x18
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cdq
pop ecx
idiv ecx
mov word [0x5d6fd4], ax
jmp 0x4072f1
mov ecx, dword [ebp - 0x4084]
lea eax, [ebp - 0x20]
push eax
call fcn.0040770a
lea ecx, [ebp - 0x20]
call fcn.00459030
jmp 0x4071ae
test esi, esi
je 0x4074a8
push esi
call fcn.0050269b
pop ecx
jmp 0x4074a8
cmp dword [0x768ca0], 2
jg 0x407457
push 4
pop ebx
push 2
push 0x19e
push str.e:360chrome37_srcchromeinstallerqihoo_utilutillzma_util.cc
lea ecx, [ebp - 0x41f4]
call fcn.0045ce90
mov edx, str.Couldnt_get_file_name
lea ecx, [eax + 8]
call fcn.0045d6f0
test bl, 4
jmp 0x407498
cmp dword [0x768ca0], 2
jg 0x407495
push 2
pop ebx
push ebx
push 0x196
push str.e:360chrome37_srcchromeinstallerqihoo_utilutillzma_util.cc
lea ecx, [ebp - 0x41f4]
call fcn.0045ce90
push esi
push ecx
mov edx, str.Error_returned_by_SzExtract:
lea ecx, [eax + 8]
call fcn.0045d6f0
pop ecx
mov ecx, eax
call fcn.0040761a
test bl, 2
je 0x4074a5
lea ecx, [ebp - 0x41f4]
call fcn.0045cee0
push 6
pop edi
push dword [ebp - 0x4094]
lea eax, [ebp - 0x409c]
push eax
call dword [ebp - 0x4098]
pop ecx
pop ecx
lea edx, [ebp - 0x409c]
lea ecx, [ebp - 0x4144]
call fcn.00452384
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret 0xc