Function at 0x411750
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 0x48c095
push eax
mov eax, 0x19d8
mov dword fs:[0], esp
call fcn.0044db10
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xbc]
push dword [ebp + 8]
call fcn.004049c0
mov byte [ebp - 4], 2
push dword [edi + 0x51c]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0xa8], 8
lea ecx, [ebp - 0xbc]
mov eax, dword [ebp - 0xac]
cmovae ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x18], ecx
cmp eax, 2
jb 0x411826
dec eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x14], eax
nop
sub eax, ecx
sar eax, 1
je 0x411823
cmp word [ecx], 0x2f
je 0x4117e6
add ecx, 2
sub eax, 1
jne 0x4117d6
jmp 0x411823
mov edx, 0x4a4d48
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 0x4118b1
add edx, 2
sub esi, 1
jne 0x411800
sub ecx, dword [ebp - 0x18]
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4119be
mov edi, dword [ebp - 0x10]
push 8
xor eax, eax
mov dword [ebp - 0x24], 0
push str.https:__
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.00404a80
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00408b70
mov byte [ebp - 4], 4
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x411869
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00404c10
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x4118c6
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4118bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fb8
jmp 0x4118bc
mov eax, dword [ebp - 0x14]
add ecx, 2
jmp 0x4117d0
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x50]
mov esi, dword [ebp - 0x24]
xor eax, eax
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0xac]
add eax, esi
mov dword [ebp - 0x40], 0
push eax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x14], 1
call fcn.004068c0
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push esi
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x50]
push eax
call fcn.00404c10
cmp dword [ebp - 0xa8], 8
lea eax, [ebp - 0xbc]
push dword [ebp - 0xac]
cmovae eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0x50]
push eax
call fcn.00404c10
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00406170
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x41197e
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411974
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x4119c1
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4119b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
jmp 0x4119c1
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0xa8], 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 - 0xbc]
cmovae eax, dword [ebp - 0xbc]
push 0
push dword [ebp - 0xac]
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 0x411b7b
lea eax, [ebp - 0xbc]
mov edx, str.Error_2029___Bad_URL_passed__
push eax
lea ecx, [ebp - 0xec]
call fcn.0041eed0
add esp, 4
push 1
push 0x4a2d70
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00404c10
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x90], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x3b0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 7
push eax
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040bbe0
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x411b2d
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411b23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fbd
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0xd8]
cmp edx, 8
jb 0x411fc8
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411b67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fbd
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov esi, 2
jmp 0x412ec7
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 ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x411fd2
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 - 0x14], 0x499
push eax
call fcn.00430290
mov esi, eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00430290
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.00420640
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
push 8
push str._:_code
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xa
call fcn.00404c10
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], 0xb
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
sub eax, edx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
jbe 0x411caa
mov eax, dword [esi + 0x14]
sub eax, ecx
cmp eax, edx
jb 0x411caa
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
push edx
cmovae eax, dword [ebp - 0x68]
mov ecx, esi
push eax
push 0
call fcn.00420640
jmp 0x411cbc
cmp dword [esi + 0x14], 8
jb 0x411cb2
mov esi, dword [esi]
push ecx
push esi
lea ecx, [ebp - 0x68]
call fcn.00404c10
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov word [eax], cx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
push 2
push 0x4a4a98
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.00404c10
mov dword [ebp - 0x74], 0
xor ecx, ecx
mov dword [ebp - 0x70], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x84], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x74], 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 0x411d43
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x84]
call fcn.00404c10
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x90], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x3b0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xe
push eax
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040bbe0
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x411dd7
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411dcd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc2
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x411e14
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411e0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc2
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
cmp edx, 8
jb 0x411e65
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411e5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc2
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp edx, 8
jb 0x411eb3
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411ea9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc2
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x411f01
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411ef7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc2
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0xc0]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp edx, 8
jb 0x411f55
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411f4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc2
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0xd8]
xor eax, eax
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
cmp edx, 8
jb 0x411fb2
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411fa8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc2
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov eax, dword [edi + 0x4e4]
mov ecx, 2
cmp eax, ecx
cmovl eax, ecx
mov dword [edi + 0x4e4], eax
mov esi, 2
jmp 0x412ec7
cmp dword [ebp - 0x124], 4
mov edx, 0x84802000
push 0
mov eax, 0x84002000
mov dword [ebp - 0xf4], 0x4a4a2c
cmove eax, edx
mov dword [ebp - 0xf0], 0
push eax
lea eax, [ebp - 0xf4]
push eax
push 0
push 0
push dword [ebp - 0x104]
push 0x4a4e14
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
jne 0x412476
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xd4]
xor eax, eax
mov dword [ebp + 0x3c], 2
push eax
push 0x4a2010
mov dword [ebp - 0x18], 0x4a4
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
call fcn.00404a80
lea eax, [ebp + 0x3c]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00430290
mov esi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.00430290
add esp, 0x10
push 0x2d
push str.Error_2031___Error_communicating_with_server
push edi
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.00420640
mov dword [ebp - 0x74], edi
xor ecx, ecx
mov dword [ebp - 0x70], edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x84], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x74], xmm0
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 7
mov word [eax], cx
push 8
push str._:_code
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x12
call fcn.00404c10
mov dword [ebp - 0x58], edi
xor ecx, ecx
mov dword [ebp - 0x54], edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x58], xmm0
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x13
mov edi, dword [ebp - 0x54]
mov eax, edi
mov edx, dword [ebp - 0x58]
sub eax, edx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
jbe 0x412146
mov eax, dword [esi + 0x14]
sub eax, ecx
cmp eax, edx
jb 0x412146
cmp edi, 8
lea eax, [ebp - 0x68]
push edx
cmovae eax, dword [ebp - 0x68]
mov ecx, esi
push eax
push 0
call fcn.00420640
jmp 0x412158
cmp dword [esi + 0x14], 8
jb 0x41214e
mov esi, dword [esi]
push ecx
push esi
lea ecx, [ebp - 0x68]
call fcn.00404c10
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov word [eax], cx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
push 2
push 0x4a4a98
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x14
call fcn.00404c10
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], 0x15
sub esp, 0x18
mov eax, dword [ebp + 8]
mov esi, esp
mov dword [ebp - 0x6c], esi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4121e4
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00404c10
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 - 0xd4]
push eax
push ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00412fe0
mov edx, dword [ebp - 0x3c]
mov esi, eax
cmp edx, 8
jb 0x412275
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41226b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp edx, 8
jb 0x4122c3
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4122b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp edx, 8
jb 0x412311
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412307
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x412362
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412358
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0xd8]
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
cmp edx, 8
jb 0x4123b9
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4123af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
cmp edx, 8
jb 0x412416
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41240c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov edx, dword [ebp - 0xc0]
cmp edx, 8
jb 0x412ec7
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412ca2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
jmp 0x412ca2
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x24]
push eax
call fcn.004199a0
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 0x4125e2
push 0x16
xor eax, eax
mov dword [ebp - 0x74], 0
push str.Error_writing_to_file
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
call fcn.00404a80
mov byte [ebp - 4], 0x16
lea eax, [ebp + 0x24]
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x84]
push dword [ebp + 0x34]
cmovae eax, dword [ebp + 0x24]
push eax
call fcn.00404c10
xor eax, eax
mov dword [ebp + 8], 2
push eax
push 0x4a2010
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00404a80
lea eax, [ebp + 8]
mov byte [ebp - 4], 0x17
push eax
sub esp, 0x18
lea eax, [ebp - 0x84]
mov ecx, esp
push eax
call fcn.004049c0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x50]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00412fe0
mov edx, dword [ebp - 0x3c]
mov esi, eax
cmp edx, 8
jb 0x41258e
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412584
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fcc
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp edx, 8
jb 0x412ec7
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412ca2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fcc
jmp 0x412ca2
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x412a26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xd4]
xor eax, eax
mov dword [ebp + 0x3c], 2
push eax
push 0x4a2010
mov dword [ebp - 0x18], 0x4b2
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
call fcn.00404a80
lea eax, [ebp + 0x3c]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.00430290
mov edi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00430290
add esp, 0x10
push 0x2d
push str.Error_2032___Error_communicating_with_server
push 0
mov ecx, eax
mov byte [ebp - 4], 0x1a
call fcn.00420640
mov dword [ebp - 0x74], 0
xor ecx, ecx
mov dword [ebp - 0x70], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x84], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x74], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 8
push str._:_code
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x1b
call fcn.00404c10
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
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
sub eax, edx
mov ecx, dword [edi + 0x10]
cmp ecx, eax
jbe 0x412734
mov eax, dword [edi + 0x14]
sub eax, ecx
cmp eax, edx
jb 0x412734
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
push edx
cmovae eax, dword [ebp - 0x68]
mov ecx, edi
push eax
push 0
call fcn.00420640
jmp 0x412746
cmp dword [edi + 0x14], 8
jb 0x41273c
mov edi, dword [edi]
push ecx
push edi
lea ecx, [ebp - 0x68]
call fcn.00404c10
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov word [eax], cx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
push 3
push 0x4a4eac
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1d
call fcn.00404c10
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], 0x1e
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edi, esp
mov dword [ebp - 0x6c], edi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4127d2
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00404c10
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 - 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0xd4]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00412fe0
mov edx, dword [ebp - 0x3c]
mov esi, eax
cmp edx, 8
jb 0x412863
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412859
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp edx, 8
jb 0x4128b1
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4128a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp edx, 8
jb 0x4128ff
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4128f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x412950
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412946
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
cmp edx, 8
jb 0x4129a7
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41299d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp - 0xd8]
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
cmp edx, 8
jb 0x412a04
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4129fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
xor eax, eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
jmp 0x412433
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x88], 0x1000
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0xa4], 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.0046c2ce
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [eax - 0xc8]
cmp ecx, 0x64
jb 0x412cb1
xor ecx, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], cx
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x412ad2
xor eax, eax
mov word [ebp + ecx*2 - 0x11e4], ax
lea ecx, [ebp - 0x11e4]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412ab0
sub ecx, edx
lea eax, [ebp - 0x11e4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00404c10
mov eax, dword [ebp - 0x14]
cmp eax, 0x194
jne 0x412ba9
lea eax, [ebp + 8]
mov dword [ebp + 8], 3
push eax
lea eax, [ebp - 0x34]
mov edx, str.Error_2033___File_was_not_found_on_the_server__
push eax
lea ecx, [ebp - 0xa0]
call fcn.0041eed0
sub esp, 0x14
mov byte [ebp - 4], 0x20
mov esi, esp
mov ecx, eax
mov dword [ebp + 0x3c], esi
push 1
push 0x4a2d70
call fcn.00404c10
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 - 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00412fe0
mov edx, dword [ebp - 0x8c]
mov esi, eax
cmp edx, 8
jb 0x412c87
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412b9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
jmp 0x412c87
push 1
push 3
lea ecx, [ebp - 0x1e0]
call fcn.0041a500
push 0x4cc
mov edx, str.Error_2034___Error_communicating_with_server
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x1d0]
call fcn.0041f000
mov ecx, eax
call fcn.0041ac70
push dword [ebp - 0x14]
mov edx, str._response_was_HTTP
lea ecx, [ebp - 0x1d0]
call fcn.0041f000
mov ecx, eax
call fcn.0041ac70
mov edx, 0x4a4a98
lea ecx, [ebp - 0x1d0]
call fcn.0041f000
mov edx, eax
mov eax, dword [ebp + 8]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x412c11
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push edx
call fcn.00420cb0
mov edx, 0x4a4ffc
mov ecx, eax
call fcn.0041f000
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
push dword [ebp - 0x24]
cmovae ecx, dword [ebp - 0x34]
push ecx
push eax
call fcn.00420cb0
add esp, 0x18
mov edx, 0x4a2d70
mov ecx, eax
call fcn.0041f000
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
sub esp, 0x18
lea ecx, [ebp - 0x1e0]
push esp
call fcn.0041a450
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x24]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00412fe0
lea ecx, [ebp - 0x1e0]
mov esi, eax
call fcn.0040a3b0
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x412ec7
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
jmp 0x41244f
push edx
push ecx
call fcn.0044cee7
add esp, 8
jmp 0x412ec7
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x88], 0x1002
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0xa4], 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.0046c2ce
mov esi, eax
add esp, 4
cmp esi, 1
jge 0x412d73
mov esi, dword [ebp + 0x3c]
nop dword [eax]
mov eax, 0x1002
cmp esi, 1
jl 0x412d0f
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 0x412e7f
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x412e4b
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 0x412e32
sub esi, ecx
jmp 0x412d00
mov eax, dword [ebp + 0x3c]
cmp eax, esi
je 0x412d00
test eax, eax
jle 0x412d00
push 1
push 3
lea ecx, [ebp - 0x1e0]
call fcn.0041a500
push esi
mov edx, str.Error_2058___Error__server_says_file_is
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x1d0]
call fcn.0041f000
mov ecx, eax
call fcn.0041ac70
push dword [ebp + 0x3c]
mov edx, str._but_it_should_be
lea ecx, [ebp - 0x1d0]
call fcn.0041f000
mov ecx, eax
call fcn.0041ac70
mov edx, 0x4a4a98
lea ecx, [ebp - 0x1d0]
call fcn.0041f000
mov edx, eax
mov eax, dword [ebp + 8]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x412de2
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push edx
call fcn.00420cb0
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.0041a450
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00412fe0
lea ecx, [ebp - 0x1e0]
mov esi, eax
call fcn.0040a3b0
jmp 0x412ec7
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push eax
sub esp, 0x18
mov ecx, esp
push 0x28
push str.Error_2060___Error_saving_file_to_disk:
jmp 0x412e96
test esi, esi
jle 0x412e61
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 0x412e8f
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x412ec7
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.00404a80
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00412fe0
mov esi, eax
mov edx, dword [ebp - 0xa8]
cmp edx, 8
jb 0x412f07
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412efd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov edx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
cmp edx, 8
jb 0x412f5a
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412f50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
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 0x412fa4
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412f9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fc7
push edx
push ecx
call fcn.0044cee7
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.0046811a
call fcn.0046811a
call fcn.0046811a
call fcn.0046811a
call fcn.0046811a
int3