Function at 0x401920
Capabilities:
Check http status code
Check if file exists
Create process on windows
Initialize winhttp library
Move file
Prepare http request
Print debug messages
Read http header
Receive http response
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bf3c
mov eax, dword fs:[0]
push eax
mov eax, 0x4218
call fcn.00407220
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x4190], 0
mov dword [ebp - 0x4178], eax
mov dword [ebp - 0x4160], eax
mov dword [ebp - 0x4148], eax
mov dword [ebp - 0x4130], eax
mov dword [ebp - 0x4118], eax
mov dword [ebp - 0x4180], 0
mov dword [ebp - 0x417c], 7
mov word [ebp - 0x4190], ax
mov dword [ebp - 0x4168], eax
mov dword [ebp - 0x4164], 7
mov word [ebp - 0x4178], ax
mov dword [ebp - 0x4150], eax
mov dword [ebp - 0x414c], 7
mov word [ebp - 0x4160], ax
mov dword [ebp - 0x4138], eax
mov dword [ebp - 0x4134], 7
mov word [ebp - 0x4148], ax
mov dword [ebp - 0x4120], eax
mov dword [ebp - 0x411c], 7
mov word [ebp - 0x4130], ax
mov dword [ebp - 0x4108], eax
mov dword [ebp - 0x4104], 7
mov word [ebp - 0x4118], ax
mov byte [ebp - 4], 1
xorps xmm0, xmm0
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x4220], eax
movlpd qword [ebp - 0x4218], xmm0
movlpd qword [ebp - 0x420c], xmm0
movlpd qword [ebp - 0x4204], xmm0
movlpd qword [ebp - 0x41fc], xmm0
mov dword [ebp - 0x41f0], eax
mov dword [ebp - 0x4224], 0x3c
mov dword [ebp - 0x421c], 0xffffffff
mov dword [ebp - 0x4210], 0xffffffff
mov dword [ebp - 0x41f4], 0xffffffff
mov dword [ebp - 0x41ec], 0xffffffff
jb 0x401a7d
mov ecx, dword [ecx]
lea eax, [ebp - 0x4224]
push eax
push 0
push 0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x401b00
push str.Wrong_URL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x4198]
call fcn.00402b20
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x401ae3
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401ad9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b00
push edx
push ecx
call fcn.0040689e
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040642a
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x421c]
lea ecx, [ebp - 0x4190]
push dword [ebp - 0x4220]
call fcn.00403d20
push dword [ebp - 0x4210]
lea ecx, [ebp - 0x4178]
push dword [ebp - 0x4214]
call fcn.00403d20
push dword [ebp - 0x41f4]
lea ecx, [ebp - 0x4160]
push dword [ebp - 0x41f8]
call fcn.00403d20
movzx eax, word [ebp - 0x420c]
mov dword [ebp - 0x4198], eax
mov eax, dword [ebp - 0x4218]
mov dword [ebp - 0x4194], eax
mov eax, dword [ebp - 0x4208]
test eax, eax
je 0x401b7a
push dword [ebp - 0x4204]
lea ecx, [ebp - 0x4148]
push eax
call fcn.00403d20
mov eax, dword [ebp - 0x4200]
test eax, eax
je 0x401b96
push dword [ebp - 0x41fc]
lea ecx, [ebp - 0x4130]
push eax
call fcn.00403d20
mov eax, dword [ebp - 0x41f0]
test eax, eax
je 0x401bb2
push dword [ebp - 0x41ec]
lea ecx, [ebp - 0x4118]
push eax
call fcn.00403d20
push 0
push 0
push 0
push 0
push str.WindowsGet_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
test esi, esi
jne 0x401c42
push eax
push eax
mov dword [ebp - 0x419c], eax
lea eax, [ebp - 0x419c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x3300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x419c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x4198]
call fcn.00402b20
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x401ae3
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401ad9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b00
jmp 0x401ad9
push 4
lea eax, [ebp - 0x41b8]
mov dword [ebp - 0x41b8], 2
push eax
push 0x58
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test eax, eax
jne 0x401c9b
push 0
push 0
lea eax, [ebp - 0x419c]
mov dword [ebp - 0x419c], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x3300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x419c]
call edi
push 4
lea eax, [ebp - 0x41b8]
mov dword [ebp - 0x41b8], 1
push eax
push 0x85
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x401ceb
push eax
push eax
mov dword [ebp - 0x419c], eax
lea eax, [ebp - 0x419c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x3300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x419c]
call edi
cmp dword [ebp - 0x4164], 8
lea eax, [ebp - 0x4178]
push 0
push dword [ebp - 0x4198]
cmovae eax, dword [ebp - 0x4178]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
jne 0x401d1f
push str.Server_unable_to_connect
call edi
jmp 0x401a9e
xor edx, edx
mov ecx, 0x800000
cmp dword [ebp - 0x4194], 2
cmove edx, ecx
cmp dword [ebp - 0x414c], 8
push edx
push 0
push 0
push 0
lea ecx, [ebp - 0x4160]
cmovae ecx, dword [ebp - 0x4160]
push ecx
push 0x4239e8
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
push 0
push 0
test esi, esi
jne 0x401dd3
mov dword [ebp - 0x419c], eax
lea eax, [ebp - 0x419c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x3300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x419c]
call edi
lea ecx, [ebp - 0x4198]
call fcn.00402b20
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x401ae3
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401ad9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b05
jmp 0x401ad9
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
test eax, eax
jne 0x401e61
mov dword [ebp - 0x419c], 0
push 0
lea eax, [ebp - 0x419c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x3300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x419c]
call edi
lea ecx, [ebp - 0x4198]
call fcn.00402b20
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x401ae3
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401ad9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b0a
jmp 0x401ad9
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push 0
test eax, eax
je 0x401de8
lea eax, [ebp - 0x41bc]
mov dword [ebp - 0x41d4], 0
push eax
lea eax, [ebp - 0x41d4]
mov dword [ebp - 0x41bc], 4
push eax
push 0
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x401eb2
mov dword [ebp - 0x419c], eax
push eax
jmp 0x401df2
mov eax, dword [ebp - 0x41d4]
cmp eax, 0xc8
je 0x401ed7
cmp eax, 0xc9
je 0x401ed7
mov dword [ebp - 0x419c], 0
push 0
jmp 0x401df2
push 0
lea eax, [ebp - 0x41bc]
mov dword [ebp - 0x41bc], 0x48
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 5
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0xa
lea eax, [ebp - 0x41e8]
mov dword [ebp - 0x41e8], 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040fc87
mov edi, eax
mov eax, edx
push eax
push edi
push str.File_size:__lld_n
mov dword [ebp - 0x41b4], edi
mov dword [ebp - 0x41a0], eax
call fcn.00401080
push str..part
lea edx, [ebp + 8]
lea ecx, [ebp - 0x40d0]
call fcn.00404410
add esp, 0x1c
push 0
push 0x80
push 4
push 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40d0]
cmp dword [ebp - 0x40bc], 8
push 1
cmovae eax, dword [ebp - 0x40d0]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x3ea
push dword [0x657f58]
xorps xmm0, xmm0
mov dword [ebp - 0x41dc], eax
movlpd qword [ebp - 0x41e4], xmm0
mov dword [ebp - 0x41a8], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x41c4], eax
call fcn.004013d0
mov ecx, eax
test ecx, ecx
je 0x402b0f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x41d8], eax
mov edx, dword [ebp - 0x41a0]
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0041be00
mulsd xmm0, qword [0x424d88]
lea eax, [ebp - 0x41d8]
sub esp, 8
movsd qword [esp], xmm0
push str._0.2f
push eax
call fcn.00404330
add esp, 0x10
lea ecx, [ebp - 0x419c]
push 0x423a2c
call fcn.00403bd0
lea eax, [ebp - 0x419c]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x41d8]
lea ecx, [ebp - 0x41a4]
call fcn.00403a90
add esp, 4
push dword [eax]
push 0x3eb
push dword [0x657f58]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, dword [ebp - 0x41a4]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40205e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x419c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402080
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x41a0]
mov ecx, edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
shrd ecx, eax, 0xe
shr eax, 0xe
mov dword [ebp - 0x41d0], eax
mov dword [ebp - 0x41cc], ecx
lea eax, [ecx + ecx]
movzx eax, ax
shl eax, 0x10
push eax
push 0
push 0x401
push dword [ebp - 0x41c4]
call edi
push 0
push 1
push 0x404
push dword [ebp - 0x41c4]
call edi
mov eax, dword [ebp - 0x41e4]
xor ecx, ecx
mov edi, dword [ebp - 0x41e0]
mov dword [ebp - 0x41c0], eax
nop
lea eax, [ebp - 0x41a8]
inc ecx
push eax
push esi
mov dword [ebp - 0x41a4], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4022f4
mov eax, dword [ebp - 0x41c0]
add eax, dword [ebp - 0x41a8]
mov dword [ebp - 0x41c0], eax
adc edi, 0
cmp dword [ebp - 0x41a0], 0
mov dword [ebp - 0x41b0], edi
ja 0x40212e
cmp dword [ebp - 0x41b4], 0
jbe 0x402270
call fcn.004013d0
mov ecx, eax
test ecx, ecx
je 0x402b0f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x419c], eax
push dword [ebp - 0x41a0]
mov ecx, 0x64
mov byte [ebp - 4], 5
push dword [ebp - 0x41b4]
mov eax, edi
mul ecx
mov edx, 0x64
mov ecx, eax
mov eax, dword [ebp - 0x41c0]
mul edx
add ecx, edx
push ecx
push eax
call fcn.0041bd90
push edx
push eax
lea eax, [ebp - 0x419c]
push 0x423a30
push eax
call fcn.00404330
add esp, 0x10
lea ecx, [ebp - 0x41ac]
push 0x423a38
call fcn.00403bd0
lea eax, [ebp - 0x41ac]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x419c]
lea ecx, [ebp - 0x41c8]
call fcn.00403a90
add esp, 4
push dword [eax]
push 0x3ec
push dword [0x657f58]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, dword [ebp - 0x41c8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4021f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x41ac]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402216
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x41cc]
mov ecx, dword [ebp - 0x41d0]
mov eax, dword [ebp - 0x41a4]
shld ecx, edi, 1
cdq
add edi, edi
cmp edx, ecx
ja 0x40224e
jb 0x402239
cmp eax, edi
jae 0x40224e
push 0
push 0
push 0x405
push dword [ebp - 0x41c4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x419c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402270
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x41a8]
test edi, edi
je 0x4022f4
nop word [eax + eax]
lea eax, [ebp - 0x419c]
mov dword [ebp - 0x419c], 0
push eax
mov eax, 0x4000
cmp edi, eax
cmovb eax, edi
push eax
lea eax, [ebp - 0x4058]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4022da
sub edi, dword [ebp - 0x419c]
lea eax, [ebp - 0x41e0]
push 0
push eax
push dword [ebp - 0x41a8]
lea eax, [ebp - 0x4058]
push eax
push dword [ebp - 0x41dc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
jne 0x402280
cmp dword [ebp - 0x41a8], 0
jbe 0x4022f4
mov ecx, dword [ebp - 0x41a4]
mov edi, dword [ebp - 0x41b0]
jmp 0x4020e0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4070]
call fcn.00403ed0
mov byte [ebp - 4], 7
mov dword [ebp - 0x41a0], 1
cmp dword [ebp - 0x405c], 8
lea eax, [ebp - 0x4070]
cmovae eax, dword [ebp - 0x4070]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4029e8
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 8]
mov edi, dword [ebp + 0x18]
cmovae edx, dword [ebp + 8]
test edi, edi
je 0x402373
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x2e
lea esi, [edx + ecx*2]
je 0x40236d
nop dword [eax + eax]
cmp esi, edx
je 0x402373
sub esi, 2
cmp word [esi], 0x2e
jne 0x402360
sub esi, edx
sar esi, 1
jmp 0x402376
or esi, 0xffffffff
mov dword [ebp - 0x41ac], esi
cmp esi, 0xffffffff
je 0x402788
xor eax, eax
mov dword [ebp - 0x4088], 0
cmp edi, esi
mov word [ebp - 0x4088], ax
mov ecx, esi
mov dword [ebp - 0x4078], 0
cmovb ecx, edi
mov dword [ebp - 0x4074], 7
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x4088]
push eax
call fcn.00403d20
push 0x423a3c
lea edx, [ebp - 0x4088]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40a0]
call fcn.00404350
mov edi, eax
add esp, 4
lea eax, [ebp - 0x4070]
cmp eax, edi
je 0x402479
mov edx, dword [ebp - 0x405c]
cmp edx, 8
jb 0x402438
mov ecx, dword [ebp - 0x4070]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40242e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b00
push edx
push ecx
call fcn.0040689e
add esp, 8
mov dword [ebp - 0x4060], 0
xor eax, eax
mov dword [ebp - 0x405c], 7
mov word [ebp - 0x4070], ax
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x4070], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x4060], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x408c]
cmp edx, 8
jb 0x4024b9
mov ecx, dword [ebp - 0x40a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4024af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b00
push edx
push ecx
call fcn.0040689e
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x4074]
mov dword [ebp - 0x4090], 0
mov dword [ebp - 0x408c], 7
mov word [ebp - 0x40a0], ax
cmp edx, 8
jb 0x40251a
mov ecx, dword [ebp - 0x4088]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402510
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b00
push edx
push ecx
call fcn.0040689e
add esp, 8
mov edx, dword [ebp - 0x41a0]
lea ecx, [ebp - 0x40b8]
call fcn.00401670
mov byte [ebp - 4], 9
mov ecx, eax
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x41a4], eax
jb 0x402545
mov ecx, dword [eax]
mov dword [ebp - 0x41a4], ecx
mov edx, dword [eax + 0x10]
mov edi, dword [ebp - 0x4060]
mov eax, dword [ebp - 0x405c]
sub eax, edi
mov dword [ebp - 0x41b0], edi
cmp edx, eax
ja 0x4025a6
mov eax, dword [ebp - 0x41b0]
lea esi, [ebp - 0x4070]
add edi, edx
cmp dword [ebp - 0x405c], 8
mov dword [ebp - 0x4060], edi
cmovae esi, dword [ebp - 0x4070]
lea ecx, [esi + eax*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x41a4]
push ecx
call fcn.00407b20
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x41ac]
jmp 0x4025c1
push edx
push ecx
mov byte [ebp - 0x41d0], 0
lea ecx, [ebp - 0x4070]
push dword [ebp - 0x41d0]
push edx
call fcn.00404750
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x40a4]
cmp edx, 8
jb 0x402605
mov ecx, dword [ebp - 0x40b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4025fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b00
push edx
push ecx
call fcn.0040689e
add esp, 8
mov edi, dword [ebp - 0x405c]
mov eax, edi
mov edx, dword [ebp - 0x4060]
sub eax, edx
cmp eax, 1
jb 0x402644
cmp edi, 8
lea eax, [ebp - 0x4070]
lea ecx, [edx + 1]
mov edi, 0x29
cmovae eax, dword [ebp - 0x4070]
mov dword [ebp - 0x4060], ecx
mov word [eax + edx*2], di
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x402665
push 1
push 0x423a40
mov byte [ebp - 0x41cc], 0
lea ecx, [ebp - 0x4070]
push dword [ebp - 0x41cc]
push 1
call fcn.00404750
xor eax, eax
mov dword [ebp - 0x4088], 0
mov word [ebp - 0x4088], ax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4078], 0
mov dword [ebp - 0x4074], 7
cmp eax, esi
jb 0x402b19
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x4088]
lea eax, [eax + esi*2]
push eax
call fcn.00403d20
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4088]
cmp dword [ebp - 0x4074], 8
mov eax, dword [ebp - 0x4088]
mov esi, dword [ebp - 0x4060]
cmovae ecx, eax
mov edx, dword [ebp - 0x4078]
mov dword [ebp - 0x41a4], eax
mov eax, dword [ebp - 0x405c]
sub eax, esi
mov dword [ebp - 0x41c8], ecx
mov dword [ebp - 0x41b0], esi
cmp edx, eax
ja 0x402748
cmp dword [ebp - 0x405c], 8
lea edi, [esi + edx]
mov eax, dword [ebp - 0x41b0]
lea esi, [ebp - 0x4070]
cmovae esi, dword [ebp - 0x4070]
mov dword [ebp - 0x4060], edi
lea ecx, [esi + eax*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x41c8]
push ecx
call fcn.00407b20
mov ecx, dword [ebp - 0x41a4]
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x402769
push edx
push ecx
mov byte [ebp - 0x41b4], 0
lea ecx, [ebp - 0x4070]
push dword [ebp - 0x41b4]
push edx
call fcn.00404750
mov ecx, dword [ebp - 0x4088]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x4074]
cmp eax, 8
jb 0x4029dd
lea edx, [eax*2 + 2]
jmp 0x4029b5
mov edx, dword [ebp - 0x41a0]
lea ecx, [ebp - 0x4100]
call fcn.00401670
mov esi, eax
push 0x423a3c
lea edx, [ebp + 8]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x40b8]
call fcn.00404410
add esp, 4
push esi
push eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x4088]
push dword [ebp - 0x41e0]
call fcn.00404a30
push 0x423a40
lea edx, [ebp - 0x4088]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x40a0]
call fcn.00404350
mov esi, eax
add esp, 4
lea eax, [ebp - 0x4070]
cmp eax, esi
je 0x40287a
mov edx, dword [ebp - 0x405c]
cmp edx, 8
jb 0x402839
mov ecx, dword [ebp - 0x4070]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40282f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b00
push edx
push ecx
call fcn.0040689e
add esp, 8
mov dword [ebp - 0x4060], 0
xor eax, eax
mov dword [ebp - 0x405c], 7
mov word [ebp - 0x4070], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x4070], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x4060], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x408c]
cmp edx, 8
jb 0x4028ba
mov ecx, dword [ebp - 0x40a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4028b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b00
push edx
push ecx
call fcn.0040689e
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x4074]
mov dword [ebp - 0x4090], 0
mov dword [ebp - 0x408c], 7
mov word [ebp - 0x40a0], ax
cmp edx, 8
jb 0x40291b
mov ecx, dword [ebp - 0x4088]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402911
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b00
push edx
push ecx
call fcn.0040689e
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x40a4]
mov dword [ebp - 0x4078], 0
mov dword [ebp - 0x4074], 7
mov word [ebp - 0x4088], ax
cmp edx, 8
jb 0x40297c
mov ecx, dword [ebp - 0x40b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402972
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b00
push edx
push ecx
call fcn.0040689e
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x40ec]
mov dword [ebp - 0x40a8], 0
mov dword [ebp - 0x40a4], 7
mov word [ebp - 0x40b8], ax
cmp edx, 8
jb 0x4029dd
mov ecx, dword [ebp - 0x4100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4029d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b00
push edx
push ecx
call fcn.0040689e
add esp, 8
inc dword [ebp - 0x41a0]
jmp 0x402311
push dword [ebp - 0x41dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x405c], 8
lea ecx, [ebp - 0x4070]
push 2
cmovae ecx, dword [ebp - 0x4070]
lea eax, [ebp - 0x40d0]
cmp dword [ebp - 0x40bc], 8
push ecx
cmovae eax, dword [ebp - 0x40d0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, eax
cmp ecx, 0x409
jne 0x402a3a
xor eax, eax
jmp 0x402a54
cmp ecx, 0x404
jne 0x402a49
mov eax, 2
jmp 0x402a54
xor eax, eax
cmp ecx, 0x804
sete al
mov ecx, str.Download_Finished._n_Do_you_want_to_install_now__
mov dword [ebp - 0x40e8], 0
cmp eax, 1
mov dword [ebp - 0x40d8], 0
mov edx, 0x423a44
mov dword [ebp - 0x40d4], 7
cmovne edx, ecx
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a87
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40e8]
call fcn.00403d20
cmp dword [ebp - 0x40d4], 8
lea eax, [ebp - 0x40e8]
push 3
cmovae eax, dword [ebp - 0x40e8]
push str.Message
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
cmp eax, 6
jne 0x402afb
push dword [0x657f58]
call dword [sym.imp.USER32.dll_EndDialog]
push 0xa
push 0
push 0
lea ecx, [ebp - 0x4070]
call fcn.00403d10
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call fcn.00409a0b
call fcn.0040fe6d
call fcn.0040fe6d
call fcn.0040fe6d
push 0x80004005
call fcn.00401240
call fcn.00404250
int3