Function at 0x403933
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.004188b0
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], 0x4181f0
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 0x403c35
push 4
push 0x42835c
push 0x54
mov dword [ebp - 0x28], eax
push eax
call sub.winhttp.dll_WinHttpSetOption
lea eax, [0x426279]
lea edx, [ebp - 0x1088]
lea esi, [ebp - 0x1088]
mov dword [edx], eax
mov ecx, dword [edx]
mov dword [edx], 0x3caf8b1c
mov edx, dword [esi]
call fcn.00401f03
and dword [esi + 8], 0
xorps xmm0, xmm0
xor ecx, ecx
movsd qword [esi], xmm0
cmp ecx, 0xb
ja 0x4039e3
mov edx, dword [ecx + 0x428360]
xor edx, dword [eax + ecx]
mov dword [ebp + ecx - 0x1088], edx
add ecx, 4
jmp 0x4039c9
movzx eax, word [eax + 0xc]
lea esi, [ebp - 0x1088]
or dword [ebp - 0x10], 0xffffffff
lea edi, [ebp - 0x70]
lea edx, [ebp - 0x48]
mov ecx, edi
xor eax, 0x22a6
mov word [esi + 0xc], ax
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 6]
movsd qword [edx], xmm0
movsd qword [edx + 6], xmm1
push 0xe
call fcn.00409436
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.0040390a
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.0040fb63
test ebx, ebx
je 0x403c84
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], 0x428370
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.00401bac
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, 0x428378
push eax
call fcn.0040390a
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.0040390a
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.0040fb63
mov ecx, dword [ebp - 0x48]
mov edx, edi
call fcn.0040fb63
test ebx, ebx
je 0x403cdc
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.00401be2
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.004090e8
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 0x403d72
push 0
push edi
call sub.winhttp.dll_WinHttpReceiveResponse
test eax, eax
je 0x403daf
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.00419270
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push ebx
push esi
push edi
call sub.winhttp.dll_WinHttpReadData
test eax, eax
je 0x403d45
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x403d45
cmp ecx, 0x1001
mov dword [ebp - 0x10], 9
jae 0x403e47
lea eax, [ebp + ecx - 0x1088]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x1088]
push eax
call fcn.004090e8
pop eax
mov edi, dword [ebp - 0x30]
jmp 0x403bd0
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x1088]
inc edx
call fcn.00409436
pop eax
and dword [ebp - 0x10], 0
push 0xc
pop ecx
call fcn.00401c1c
mov ecx, dword [ebp - 0x1080]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x1088]
movsd qword [eax], xmm0
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0x42838c
mov dword [ecx], 0x80000000
jmp 0x403e33
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.00409436
pop eax
mov dword [ebp - 0x10], 2
push 0xc
pop ecx
call fcn.00401c1c
mov ecx, dword [ebp - 0x1080]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x1088]
movsd qword [eax], xmm0
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0x42838c
mov dword [ecx], 0x80000000
jmp 0x403e28
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.00409436
pop eax
mov dword [ebp - 0x10], 4
push 0xc
pop ecx
call fcn.00401c1c
mov ecx, dword [ebp - 0x1080]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x1088]
movsd qword [eax], xmm0
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0x42838c
mov dword [ecx], 0x80000000
jmp 0x403e1d
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 0x403e12
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.00409436
pop eax
mov dword [ebp - 0x10], 7
push 0xc
pop ecx
call fcn.00401c1c
jmp 0x403dea
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.00409436
pop eax
mov dword [ebp - 0x10], 8
push 0xc
pop ecx
call fcn.00401c1c
mov ecx, dword [ebp - 0x1080]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x1088]
movsd qword [eax], xmm0
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0x42838c
mov dword [ecx], 0x80000000
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
call fcn.00409307
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
call fcn.00409307
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x38]
call fcn.00409307
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 0x4283cc
call fcn.00426b8c
pop eax
ud2