Function at 0x412160
Capabilities:
Check http status code
Connect to http server
Download and write a file
Parse url
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x48ca5a
push eax
mov eax, 0x19d8
mov dword fs:[0], esp
call fcn.0044e410
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xd4]
push dword [ebp + 8]
call fcn.004049f0
mov byte [ebp - 4], 2
push dword [edi + 0x51c]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0xc0], 8
lea ecx, [ebp - 0xd4]
mov eax, dword [ebp - 0xc4]
cmovae ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x18], ecx
cmp eax, 2
jb 0x412236
dec eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x10], eax
nop
sub eax, ecx
sar eax, 1
je 0x412233
cmp word [ecx], 0x2f
je 0x4121f6
add ecx, 2
sub eax, 1
jne 0x4121e6
jmp 0x412233
mov edx, 0x4a5dc8
mov edi, ecx
mov esi, 2
sub edi, edx
nop dword [eax]
nop dword [eax + eax]
mov ax, word [edx + edi]
cmp ax, word [edx]
jne 0x4122c1
add edx, 2
sub esi, 1
jne 0x412210
sub ecx, dword [ebp - 0x18]
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4123ce
mov edi, dword [ebp - 0x14]
push 8
xor eax, eax
mov dword [ebp - 0x20], 0
push str.https:__
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00404ab0
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00409580
mov byte [ebp - 4], 4
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x412279
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00404c70
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x88]
cmp edx, 8
jb 0x4122d6
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4122cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d58
jmp 0x4122cc
mov eax, dword [ebp - 0x10]
add ecx, 2
jmp 0x4121e0
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x68]
mov esi, dword [ebp - 0x20]
xor eax, eax
mov word [ebp - 0x68], ax
mov eax, dword [ebp - 0xc4]
add eax, esi
mov dword [ebp - 0x58], 0
push eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x10], 1
call fcn.00407350
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push esi
cmovae eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x68]
push eax
call fcn.00404c70
cmp dword [ebp - 0xc0], 8
lea eax, [ebp - 0xd4]
push dword [ebp - 0xc4]
cmovae eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0x68]
push eax
call fcn.00404c70
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00406950
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x41238e
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412384
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4123d1
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4123c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
jmp 0x4123d1
mov edi, dword [ebp - 0x14]
cmp dword [ebp - 0xc0], 8
lea eax, [ebp - 0x13e4]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x130]
lea eax, [ebp - 0x15e4]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x114], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x17e4]
movlpd qword [ebp - 0x12c], xmm0
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x19e4]
push ecx
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0xd4]
cmovae eax, dword [ebp - 0xd4]
push 0
push dword [ebp - 0xc4]
mov dword [ebp - 0x118], 0
push eax
movlpd qword [ebp - 0xfc], xmm0
mov dword [ebp - 0x130], 0x3c
mov dword [ebp - 0x11c], 0x100
mov dword [ebp - 0x110], 0x100
mov dword [ebp - 0x108], 0x100
mov dword [ebp - 0x100], 0x100
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x41258b
lea eax, [ebp - 0xd4]
mov edx, str.Error_2029___Bad_URL_passed__
push eax
lea ecx, [ebp - 0xec]
call fcn.0041f6c0
add esp, 4
push 1
push 0x4a3e00
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00404c70
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x9c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x8c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x3b0
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 7
push eax
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040c5f0
mov edx, dword [ebp - 0x88]
cmp edx, 8
jb 0x41253d
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412533
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d5d
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0xd8]
cmp edx, 8
jb 0x412d8e
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412577
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d5d
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov esi, 2
jmp 0x413c67
push 0
push 0
push 3
push dword [ebp - 0x10c]
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push dword [ebp - 0x120]
push dword [edi + 0x4bc]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x4129b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3c], eax
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0x10], 0x4b8
push eax
call fcn.00430920
mov esi, eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00430920
add esp, 0x10
push 0x2d
push str.Error_2030___Error_communicating_with_server
push 0
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00407500
mov dword [ebp - 0x58], 0
xor ecx, ecx
mov dword [ebp - 0x54], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x58], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 8
push str._:_code
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.00404c70
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x3c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x40], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
sub eax, edx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
jbe 0x4126ba
mov eax, dword [esi + 0x14]
sub eax, ecx
cmp eax, edx
jb 0x4126ba
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push edx
cmovae eax, dword [ebp - 0x50]
mov ecx, esi
push eax
push 0
call fcn.00407500
jmp 0x4126cc
cmp dword [esi + 0x14], 8
jb 0x4126c2
mov esi, dword [esi]
push ecx
push esi
lea ecx, [ebp - 0x50]
call fcn.00404c70
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov word [eax], cx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
push 2
push 0x4a5b18
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.00404c70
mov dword [ebp - 0x70], 0
xor ecx, ecx
mov dword [ebp - 0x6c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x80], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x70], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp + 8]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x412750
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x80]
call fcn.00404c70
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x9c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x8c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x3b0
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0xe
push eax
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040c5f0
mov edx, dword [ebp - 0x88]
cmp edx, 8
jb 0x4127e1
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4127d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x41281b
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412811
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
cmp edx, 8
jb 0x412869
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41285f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x4128b7
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4128ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp edx, 8
jb 0x412905
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4128fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0xa4]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x412959
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41294f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0xd8]
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
cmp edx, 8
jb 0x412d77
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412d6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
jmp 0x412d6d
push 4
lea eax, [edi + 0x528]
push eax
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x412d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3c], eax
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0x10], 0x4bf
push eax
call fcn.00430920
mov esi, eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00430920
add esp, 0x10
push 0x2b
push str.Error_2030___Error_negotiating_with_server
push 0
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.00407500
mov dword [ebp - 0x70], 0
xor ecx, ecx
mov dword [ebp - 0x6c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x80], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x70], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 8
push str._:_code
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x11
call fcn.00404c70
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x3c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x40], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
sub eax, edx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
jbe 0x412acb
mov eax, dword [esi + 0x14]
sub eax, ecx
cmp eax, edx
jb 0x412acb
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push edx
cmovae eax, dword [ebp - 0x50]
mov ecx, esi
push eax
push 0
call fcn.00407500
jmp 0x412add
cmp dword [esi + 0x14], 8
jb 0x412ad3
mov esi, dword [esi]
push ecx
push esi
lea ecx, [ebp - 0x50]
call fcn.00404c70
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov word [eax], cx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
push 2
push 0x4a5b18
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.00404c70
mov dword [ebp - 0x58], 0
xor ecx, ecx
mov dword [ebp - 0x54], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x58], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x412b61
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00404c70
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x9c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x8c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x3b0
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0x15
push eax
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040c5f0
mov edx, dword [ebp - 0x88]
cmp edx, 8
jb 0x412bf2
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412be8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x412c2c
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412c22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x412c7a
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412c70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x412cc8
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412cbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x6c]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp edx, 8
jb 0x412d16
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412d0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0xa4]
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
cmp edx, 8
jb 0x412959
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41294f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
jmp 0x41294f
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov eax, dword [edi + 0x4e4]
mov ecx, 2
cmp eax, 2
cmovl eax, ecx
mov dword [edi + 0x4e4], eax
mov esi, 2
jmp 0x413c67
cmp dword [ebp - 0x124], 4
mov ecx, 0x84802000
push 0
mov eax, 0x84002000
mov dword [ebp - 0xf4], 0x4a5aac
cmove eax, ecx
mov dword [ebp - 0xf0], 0
push eax
lea eax, [ebp - 0xf4]
push eax
push 0
push 0
push dword [ebp - 0x104]
push 0x4a5ef0
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
jne 0x413239
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xb8]
xor eax, eax
mov dword [ebp + 0x3c], 2
push eax
push 0x4a3010
mov dword [ebp - 0x18], 0x4c9
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.00404ab0
lea eax, [ebp + 0x3c]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00430920
mov esi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.00430920
add esp, 0x10
push 0x2d
push str.Error_2031___Error_communicating_with_server
push edi
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.00407500
mov dword [ebp - 0x70], edi
xor ecx, ecx
mov dword [ebp - 0x6c], edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x80], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x70], xmm0
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 7
mov word [eax], cx
push 8
push str._:_code
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x19
call fcn.00404c70
mov dword [ebp - 0x40], edi
xor ecx, ecx
mov dword [ebp - 0x3c], edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x40], xmm0
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x1a
mov edi, dword [ebp - 0x3c]
mov eax, edi
mov edx, dword [ebp - 0x40]
sub eax, edx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
jbe 0x412f06
mov eax, dword [esi + 0x14]
sub eax, ecx
cmp eax, edx
jb 0x412f06
cmp edi, 8
lea eax, [ebp - 0x50]
push edx
cmovae eax, dword [ebp - 0x50]
mov ecx, esi
push eax
push 0
call fcn.00407500
jmp 0x412f18
cmp dword [esi + 0x14], 8
jb 0x412f0e
mov esi, dword [esi]
push ecx
push esi
lea ecx, [ebp - 0x50]
call fcn.00404c70
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov word [eax], cx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
push 2
push 0x4a5b18
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1b
call fcn.00404c70
mov dword [ebp - 0x58], 0
xor ecx, ecx
mov dword [ebp - 0x54], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x58], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x1c
sub esp, 0x18
mov eax, dword [ebp + 8]
mov esi, esp
mov dword [ebp - 0x84], esi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x412fa7
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00404c70
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov word [eax], cx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0xb8]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00413d70
mov edx, dword [ebp - 0x54]
mov esi, eax
cmp edx, 8
jb 0x413038
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41302e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x413086
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41307c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x4130d4
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4130ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x6c]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp edx, 8
jb 0x413122
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413118
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0xd8]
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
cmp edx, 8
jb 0x413176
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41316c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
cmp edx, 8
jb 0x4131d3
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4131c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
mov edx, dword [ebp - 0xa4]
cmp edx, 8
jb 0x413c67
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41322a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
jmp 0x413c67
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x24]
push eax
call fcn.0041a2a0
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
push 0
cmovae eax, dword [ebp + 0x24]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
jne 0x413396
push 0x16
xor eax, eax
mov dword [ebp - 0x70], 0
push str.Error_writing_to_file
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
call fcn.00404ab0
mov byte [ebp - 4], 0x1d
lea eax, [ebp + 0x24]
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x80]
push dword [ebp + 0x34]
cmovae eax, dword [ebp + 0x24]
push eax
call fcn.00404c70
xor eax, eax
mov dword [ebp + 8], 2
push eax
push 0x4a3010
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
call fcn.00404ab0
lea eax, [ebp + 8]
mov byte [ebp - 4], 0x1e
push eax
sub esp, 0x18
lea eax, [ebp - 0x80]
mov ecx, esp
push eax
call fcn.004049f0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x68]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00413d70
mov edx, dword [ebp - 0x54]
mov esi, eax
cmp edx, 8
jb 0x413345
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41333b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x6c]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x413c67
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41322a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41322a
jmp 0x413d62
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4137d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xb8]
xor eax, eax
mov dword [ebp + 0x3c], 2
push eax
push 0x4a3010
mov dword [ebp - 0x18], 0x4d7
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.00404ab0
lea eax, [ebp + 0x3c]
mov byte [ebp - 4], 0x1f
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.00430920
mov edi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00430920
add esp, 0x10
push 0x2d
push str.Error_2032___Error_communicating_with_server
push 0
mov ecx, eax
mov byte [ebp - 4], 0x21
call fcn.00407500
mov dword [ebp - 0x70], 0
xor ecx, ecx
mov dword [ebp - 0x6c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x80], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x70], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 8
push str._:_code
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x22
call fcn.00404c70
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x3c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x40], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x23
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
sub eax, edx
mov ecx, dword [edi + 0x10]
cmp ecx, eax
jbe 0x4134e2
mov eax, dword [edi + 0x14]
sub eax, ecx
cmp eax, edx
jb 0x4134e2
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push edx
cmovae eax, dword [ebp - 0x50]
mov ecx, edi
push eax
push 0
call fcn.00407500
jmp 0x4134f4
cmp dword [edi + 0x14], 8
jb 0x4134ea
mov edi, dword [edi]
push ecx
push edi
lea ecx, [ebp - 0x50]
call fcn.00404c70
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov word [eax], cx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
push 3
push 0x4a5f84
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x24
call fcn.00404c70
mov dword [ebp - 0x58], 0
xor ecx, ecx
mov dword [ebp - 0x54], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x58], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x25
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edi, esp
mov dword [ebp - 0x84], edi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x413583
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00404c70
mov dword [edi + 0x10], 0
xor ecx, ecx
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0xb8]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00413d70
mov edx, dword [ebp - 0x54]
mov esi, eax
cmp edx, 8
jb 0x413614
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41360a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x413662
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413658
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x4136b0
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4136a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x6c]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp edx, 8
jb 0x4136fe
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4136f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
cmp edx, 8
jb 0x413752
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413748
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp - 0xd8]
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
cmp edx, 8
jb 0x4137af
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4137a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
xor eax, eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
jmp 0x4131f0
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xa0], 0x1000
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xbc], 0
push eax
lea eax, [ebp - 0x11e4]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x11e4]
push eax
call fcn.0046cc83
add esp, 4
mov dword [ebp - 0x10], eax
lea ecx, [eax - 0xc8]
cmp ecx, 0x64
jb 0x413a52
xor ecx, ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], cx
mov byte [ebp - 4], 0x26
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x413882
xor eax, eax
mov word [ebp + ecx*2 - 0x11e4], ax
lea ecx, [ebp - 0x11e4]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413860
sub ecx, edx
lea eax, [ebp - 0x11e4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00404c70
mov eax, dword [ebp - 0x10]
cmp eax, 0x194
jne 0x413959
lea eax, [ebp + 8]
mov dword [ebp + 8], 3
push eax
lea eax, [ebp - 0x30]
mov edx, str.Error_2033___File_was_not_found_on_the_server__
push eax
lea ecx, [ebp - 0x9c]
call fcn.0041f6c0
sub esp, 0x14
mov byte [ebp - 4], 0x27
mov esi, esp
mov ecx, eax
mov dword [ebp + 0x3c], esi
push 1
push 0x4a3e00
call fcn.00404c70
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00413d70
mov edx, dword [ebp - 0x88]
mov esi, eax
cmp edx, 8
jb 0x413a37
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41394a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
jmp 0x413a37
push 1
push 3
lea ecx, [ebp - 0x1e0]
call fcn.0041af50
push 0x4f1
mov edx, str.Error_2034___Error_communicating_with_server
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x1d0]
call fcn.0041f7f0
mov ecx, eax
call fcn.0041b380
push dword [ebp - 0x10]
mov edx, str._response_was_HTTP
lea ecx, [ebp - 0x1d0]
call fcn.0041f7f0
mov ecx, eax
call fcn.0041b380
mov edx, 0x4a5b18
lea ecx, [ebp - 0x1d0]
call fcn.0041f7f0
mov edx, eax
mov eax, dword [ebp + 8]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4139c1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push edx
call fcn.00421160
mov edx, 0x4a60d4
mov ecx, eax
call fcn.0041f7f0
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
push dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x30]
push ecx
push eax
call fcn.00421160
add esp, 0x18
mov edx, 0x4a3e00
mov ecx, eax
call fcn.0041f7f0
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
sub esp, 0x18
lea ecx, [ebp - 0x1e0]
push esp
call fcn.0041aea0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x24]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00413d70
lea ecx, [ebp - 0x1e0]
mov esi, eax
call fcn.0040adc0
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x413c67
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
jmp 0x41320c
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xa0], 0x1002
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xbc], 0
push eax
lea eax, [ebp - 0x11e4]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x11e4]
push eax
call fcn.0046cc83
mov esi, eax
add esp, 4
cmp esi, 1
jge 0x413b13
mov esi, dword [ebp + 0x3c]
nop dword [eax]
mov eax, 0x1002
cmp esi, 1
jl 0x413aaf
cmp esi, eax
cmovb eax, esi
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x3c], 0
push ecx
push eax
lea eax, [ebp - 0x11e4]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x413c1f
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x413beb
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push eax
lea eax, [ebp - 0x11e4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x3c]
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp eax, ecx
jne 0x413bd2
sub esi, ecx
jmp 0x413aa0
mov eax, dword [ebp + 0x3c]
cmp eax, esi
je 0x413aa0
test eax, eax
jle 0x413aa0
push 1
push 3
lea ecx, [ebp - 0x1e0]
call fcn.0041af50
push esi
mov edx, str.Error_2058___Error__server_says_file_is
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x1d0]
call fcn.0041f7f0
mov ecx, eax
call fcn.0041b380
push dword [ebp + 0x3c]
mov edx, str._but_it_should_be
lea ecx, [ebp - 0x1d0]
call fcn.0041f7f0
mov ecx, eax
call fcn.0041b380
mov edx, 0x4a5b18
lea ecx, [ebp - 0x1d0]
call fcn.0041f7f0
mov edx, eax
mov eax, dword [ebp + 8]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x413b82
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push edx
call fcn.00421160
add esp, 0xc
mov dword [ebp + 8], 2
lea eax, [ebp + 8]
lea ecx, [ebp - 0x1e0]
push eax
sub esp, 0x18
push esp
call fcn.0041aea0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00413d70
lea ecx, [ebp - 0x1e0]
mov esi, eax
call fcn.0040adc0
jmp 0x413c67
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push eax
sub esp, 0x18
mov ecx, esp
push 0x28
push str.Error_2060___Error_saving_file_to_disk:
jmp 0x413c36
test esi, esi
jle 0x413c01
lea eax, [ebp + 8]
push eax
sub esp, 0x18
mov ecx, esp
push 0x3f
push str.Error_2059___Download_complete_but_incomplete_file__error_code
jmp 0x413c2f
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x413c67
lea eax, [ebp + 8]
push eax
sub esp, 0x18
mov ecx, esp
push 0x2d
push str.Error_2061___Error_downloading_file_to_disk:
mov dword [ebp + 8], 2
mov dword [ecx + 0x10], 0
xor eax, eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00404ab0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00413d70
mov esi, eax
mov edx, dword [ebp - 0xc0]
cmp edx, 8
jb 0x413ca7
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413c9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
cmp edx, 8
jb 0x413cfa
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413cf0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
cmp edx, 8
jb 0x413d44
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413d3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d62
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x38
call fcn.00468a1a
call fcn.00468a1a
call fcn.00468a1a
int3