Function at 0x40353a
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x107c
call fcn.004184a0
lea edi, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov dword [edi - 4], esp
or dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0x417de0
mov esi, dword fs:[0]
mov dword [edi], esi
mov dword fs:[0], edi
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], eax
push 0
push 0
push 0
push 0
push 0
call sub.winhttp.dll_WinHttpOpen
test eax, eax
je 0x40382a
push 4
push 0x42736c
push 0x54
mov dword [ebp - 0x28], eax
push eax
call sub.winhttp.dll_WinHttpSetOption
lea eax, [0x424457]
lea edx, [ebp - 0x1088]
lea esi, [ebp - 0x1088]
mov dword [edx], eax
mov ecx, dword [edx]
mov dword [edx], 0x387a1a04
mov edx, dword [esi]
call fcn.00401bf6
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [esi], xmm0
cmp ecx, 0xf
ja 0x4035e5
mov edx, dword [ecx + 0x427370]
xor edx, dword [eax + ecx]
mov dword [ebp + ecx - 0x1088], edx
add ecx, 4
jmp 0x4035cb
lea esi, [ebp - 0x1088]
or dword [ebp - 0x10], 0xffffffff
lea edi, [ebp - 0x70]
lea edx, [ebp - 0x48]
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
mov ecx, edi
movsd qword [edx + 8], xmm1
movsd qword [edx], xmm0
push 0x10
call fcn.00409015
pop eax
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], 1
mov ecx, esi
mov dword [ebp - 0x38], edx
push eax
call fcn.00403511
pop eax
mov esi, dword [ebp - 0x1084]
push 0
push 0x1bb
push esi
mov edi, dword [ebp - 0x28]
push edi
call sub.winhttp.dll_WinHttpConnect
mov ecx, dword [ebp - 0x1088]
mov edx, esi
mov ebx, eax
call fcn.0040f6f8
test ebx, ebx
je 0x403879
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x1088]
mov dword [ebp - 0x24], ebx
mov dword [ecx], eax
xor eax, eax
mov dword [edx], 0x427384
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x44], 0x401285
inc eax
mov dword [edx + 4], eax
and dword [edx + 0x10], 0
mov dword [edx + 8], ecx
lea ecx, [ebp - 0x7c]
mov dword [edx + 0xc], eax
call fcn.004018ce
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x30], eax
push 3
pop eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x48]
mov edx, 0x42738c
push eax
call fcn.00403511
pop eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 5
lea ecx, [ebp - 0x1088]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x30]
call fcn.00403511
pop eax
mov esi, dword [ebp - 0x1084]
push 0x800100
push 0
push 0
push 0
push esi
mov edi, dword [ebp - 0x4c]
push edi
push dword [ebp - 0x24]
call sub.winhttp.dll_WinHttpOpenRequest
mov ecx, dword [ebp - 0x1088]
mov edx, esi
mov ebx, eax
call fcn.0040f6f8
mov ecx, dword [ebp - 0x48]
mov edx, edi
call fcn.0040f6f8
test ebx, ebx
je 0x4038d1
lea eax, [ebp - 0x80]
mov dword [eax], 0x3300
push 4
push eax
push 0x1f
mov dword [ebp - 0x30], ebx
push ebx
call sub.winhttp.dll_WinHttpSetOption
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x58]
push 8
pop edx
call fcn.00401904
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x10], 6
lea ecx, [ebp - 0x58]
add eax, edx
push eax
call fcn.00408c31
pop eax
push 0
push 0
push 0
push 0
push 0
push 0
mov edi, dword [ebp - 0x30]
push edi
call sub.winhttp.dll_WinHttpSendRequest
test eax, eax
je 0x403967
push 0
push edi
call sub.winhttp.dll_WinHttpReceiveResponse
test eax, eax
je 0x4039a4
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x88]
and dword [eax], 0
mov dword [ecx], 4
push 0
push ecx
push eax
push 0
push 0x20000013
push edi
call sub.winhttp.dll_WinHttpQueryHeaders
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x5c]
and dword [eax], 0
mov dword [eax + 4], 1
and dword [eax + 8], 0
and dword [ecx], 0
mov ebx, 0x1000
push ebx
push 0
lea esi, [ebp - 0x1088]
push esi
call fcn.00418e60
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push ebx
push esi
push edi
call sub.winhttp.dll_WinHttpReadData
test eax, eax
je 0x40393a
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x40393a
cmp ecx, 0x1001
mov dword [ebp - 0x10], 9
jae 0x403a3c
lea eax, [ebp + ecx - 0x1088]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x1088]
push eax
call fcn.00408c31
pop eax
mov edi, dword [ebp - 0x30]
jmp 0x4037c5
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x1088]
inc edx
call fcn.00409015
pop eax
and dword [ebp - 0x10], 0
push 0xc
pop ecx
call fcn.0040193e
mov ecx, dword [ebp - 0x1080]
movsd xmm0, qword [ebp - 0x1088]
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov dword [edx + 8], 0x4273a0
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov dword [edx], 0x80000000
jmp 0x403a28
push edi
call sub.winhttp.dll_WinHttpCloseHandle
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x1088]
inc edx
call fcn.00409015
pop eax
mov dword [ebp - 0x10], 2
push 0xc
pop ecx
call fcn.0040193e
mov ecx, dword [ebp - 0x1080]
movsd xmm0, qword [ebp - 0x1088]
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov dword [edx + 8], 0x4273a0
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov dword [edx], 0x80000000
jmp 0x403a1d
push dword [ebp - 0x24]
call sub.winhttp.dll_WinHttpCloseHandle
push dword [ebp - 0x28]
call sub.winhttp.dll_WinHttpCloseHandle
mov dword [ebp - 0x10], 3
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x1088]
inc edx
call fcn.00409015
pop eax
mov dword [ebp - 0x10], 4
push 0xc
pop ecx
call fcn.0040193e
mov ecx, dword [ebp - 0x1080]
movsd xmm0, qword [ebp - 0x1088]
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov dword [edx + 8], 0x4273a0
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov dword [edx], 0x80000000
jmp 0x403a12
push edi
call sub.winhttp.dll_WinHttpCloseHandle
push dword [ebp - 0x24]
call sub.winhttp.dll_WinHttpCloseHandle
push dword [ebp - 0x28]
call sub.winhttp.dll_WinHttpCloseHandle
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x48]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
jmp 0x403a07
push edi
call sub.winhttp.dll_WinHttpCloseHandle
push dword [ebp - 0x24]
call sub.winhttp.dll_WinHttpCloseHandle
push dword [ebp - 0x28]
call sub.winhttp.dll_WinHttpCloseHandle
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x1088]
inc edx
call fcn.00409015
pop eax
mov dword [ebp - 0x10], 7
push 0xc
pop ecx
call fcn.0040193e
jmp 0x4039df
push edi
call sub.winhttp.dll_WinHttpCloseHandle
push dword [ebp - 0x24]
call sub.winhttp.dll_WinHttpCloseHandle
push dword [ebp - 0x28]
call sub.winhttp.dll_WinHttpCloseHandle
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x1088]
inc edx
call fcn.00409015
pop eax
mov dword [ebp - 0x10], 8
push 0xc
pop ecx
call fcn.0040193e
mov ecx, dword [ebp - 0x1080]
mov edx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x1088]
mov dword [eax + 8], ecx
mov dword [edx + 4], eax
mov dword [edx + 8], 0x4273a0
movsd qword [eax], xmm0
mov dword [edx], 0x80000000
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
call fcn.00408ee7
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
call fcn.00408ee7
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x38]
call fcn.00408ee7
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x107c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0x1000
push 0x4273e0
call fcn.0042677c
pop eax
ud2