Function at 0x403df1
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, 0x10e4
call fcn.0041af70
lea eax, [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x10f0]
lea edi, [ebp - 0x10f0]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x41a910
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [0x420b0a]
mov dword [edx], eax
mov ecx, dword [edx]
mov dword [edx], 0xb2f4e215
mov edx, dword [edi]
call fcn.004026d1
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [edi + 0x60], xmm0
movups xmmword [edi + 0x50], xmm0
movups xmmword [edi + 0x40], xmm0
movups xmmword [edi + 0x30], xmm0
movups xmmword [edi + 0x20], xmm0
movups xmmword [edi + 0x10], xmm0
movups xmmword [edi], xmm0
cmp ecx, 0x6f
ja 0x403e84
mov edx, dword [ecx + 0x42aa30]
xor edx, dword [eax + ecx]
mov dword [ebp + ecx - 0x10f0], edx
add ecx, 4
jmp 0x403e6a
push 0x70
pop ebx
lea esi, [ebp - 0xf0]
push ebx
push edi
push esi
call fcn.0041b930
add esp, 0xc
or dword [ebp - 0x10], 0xffffffff
lea edi, [ebp - 0x74]
mov edx, esi
mov ecx, edi
push ebx
call fcn.00408fa5
pop eax
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10f0]
mov dword [ebp - 0x2c], edx
push eax
call fcn.00403dc7
pop eax
mov eax, dword [ebp - 0x10ec]
mov dword [ebp - 0x10], 2
push 0
push 0
push 0
push 0
mov dword [ebp - 0x20], eax
push eax
call sub.winhttp.dll_WinHttpOpen
mov ecx, dword [ebp - 0x10f0]
mov edx, dword [ebp - 0x20]
mov esi, eax
call fcn.00412739
test esi, esi
je 0x404219
and dword [ebp - 0x10], 0
push 4
push 0x42aaa0
push 0x54
mov dword [ebp - 0x28], esi
push esi
call sub.winhttp.dll_WinHttpSetOption
lea eax, [0x420bc3]
lea edx, [ebp - 0x10f0]
lea esi, [ebp - 0x10f0]
mov dword [edx], eax
mov ecx, dword [edx]
mov dword [edx], 0xe68d91b3
mov edx, dword [esi]
call fcn.004027b2
and dword [esi + 4], 0
and dword [esi], 0
xor ecx, ecx
cmp ecx, 7
ja 0x403f56
mov edx, dword [ecx + 0x42aaa4]
xor edx, dword [eax + ecx]
mov dword [ebp + ecx - 0x10f0], edx
add ecx, 4
jmp 0x403f3c
movzx ecx, byte [eax + 0xa]
movzx eax, word [eax + 8]
and dword [ebp - 0x10], 0
lea edx, [ebp - 0xf0]
xor eax, 0xe2f8
xor cl, 0xa2
mov word [ebp - 0x10e8], ax
mov byte [ebp - 0x10e6], cl
lea ecx, [ebp - 0x68]
movsd xmm0, qword [ebp - 0x10f0]
mov eax, dword [ebp - 0x10e9]
movsd qword [edx], xmm0
mov dword [edx + 7], eax
push 0xb
call fcn.00408fa5
pop eax
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x10f0]
mov dword [ebp - 0x38], edx
push eax
call fcn.00403dc7
pop eax
mov eax, dword [ebp - 0x10ec]
mov dword [ebp - 0x10], 5
push 0
push 0x1bb
mov dword [ebp - 0x20], eax
push eax
push dword [ebp - 0x28]
call sub.winhttp.dll_WinHttpConnect
mov ecx, dword [ebp - 0x10f0]
mov edx, dword [ebp - 0x20]
mov esi, eax
call fcn.00412739
test esi, esi
je 0x404272
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x50]
mov edx, str._POSTContent_Type:_application_octet_stream_r_nh
push 1
call fcn.00408fa5
pop eax
mov dword [ebp - 0x10], 6
lea ecx, [ebp - 0xf0]
mov edx, 0x42aab0
push 4
call fcn.00403dc7
pop eax
mov eax, dword [ebp - 0xec]
mov edx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x10], 8
lea ecx, [ebp - 0x10f0]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], edx
push esi
call fcn.00403dc7
pop eax
mov eax, dword [ebp - 0x10ec]
mov dword [ebp - 0x10], 9
push 0x800100
push 0
push 0
push 0
mov dword [ebp - 0x30], eax
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x34]
call sub.winhttp.dll_WinHttpOpenRequest
mov ecx, dword [ebp - 0x10f0]
mov edx, dword [ebp - 0x30]
mov esi, eax
call fcn.00412739
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x20]
call fcn.00412739
test esi, esi
je 0x4042d9
lea eax, [ebp - 0x78]
mov dword [ebp - 0x10], 6
mov dword [eax], 0x3300
push 4
push eax
push 0x1f
mov dword [ebp - 0x20], esi
push esi
call sub.winhttp.dll_WinHttpSetOption
lea esi, [ebp - 0x10f0]
push 8
pop edx
mov ecx, esi
push 1
call fcn.00408f3f
pop eax
cmp dword [esi], 0
mov ecx, dword [esi + 4]
jne 0x40449f
mov edx, dword [ebp - 0x10e8]
lea eax, [ebp - 0x5c]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0xa
mov dword [eax], ecx
mov ecx, eax
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 8], 8
add esi, edx
push esi
call fcn.00408c75
pop eax
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x10f0]
mov edx, 0x42aab4
mov dword [ebp - 0x24], eax
push 0x28
call fcn.00403dc7
pop eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x10ec]
mov dword [ebp - 0x10], 0xd
push 0
mov edx, dword [ebp - 0x24]
push edx
push edx
mov dword [ebp - 0x30], eax
push eax
push 0
mov dword [ebp - 0x24], ecx
push ecx
push dword [ebp - 0x20]
call sub.winhttp.dll_WinHttpSendRequest
mov ecx, dword [ebp - 0x10f0]
mov edx, dword [ebp - 0x24]
mov esi, eax
call fcn.00412739
test esi, esi
je 0x40439e
mov dword [ebp - 0x10], 0xa
push 0
push dword [ebp - 0x20]
call sub.winhttp.dll_WinHttpReceiveResponse
test eax, eax
je 0x4043e4
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x80]
and dword [eax], 0
mov dword [ecx], 4
push 0
push ecx
push eax
push 0
push 0x20000013
push dword [ebp - 0x20]
call sub.winhttp.dll_WinHttpQueryHeaders
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0x44]
and dword [eax], 0
mov dword [eax + 4], 1
and dword [eax + 8], 0
and dword [ecx], 0
mov edi, 0x1000
push edi
push 0
lea esi, [ebp - 0x10f0]
push esi
call fcn.0041beb0
add esp, 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x10], 0xe
push eax
push edi
push esi
push dword [ebp - 0x20]
call sub.winhttp.dll_WinHttpReadData
test eax, eax
je 0x404342
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x404342
cmp ecx, 0x1001
jae 0x40448d
lea eax, [ebp + ecx - 0x10f0]
lea ecx, [ebp - 0xf0]
lea edx, [ebp - 0x10f0]
push eax
call fcn.00408c75
pop eax
jmp 0x4041b2
and dword [ebp - 0x10], 0
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x10f0]
inc edx
call fcn.00408fa5
pop eax
mov dword [ebp - 0x10], 1
push 0xc
pop ecx
call fcn.00402224
mov ecx, dword [ebp - 0x10e8]
movsd xmm0, qword [ebp - 0x10f0]
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
mov dword [edx + 4], eax
mov dword [edx + 8], 0x42aaec
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov dword [edx], 0x80000000
jmp 0x40446f
mov dword [ebp - 0x10], 3
push dword [ebp - 0x28]
call sub.winhttp.dll_WinHttpCloseHandle
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x10f0]
inc edx
call fcn.00408fa5
pop eax
mov dword [ebp - 0x10], 4
push 0xc
pop ecx
call fcn.00402224
mov ecx, dword [ebp - 0x10e8]
movsd xmm0, qword [ebp - 0x10f0]
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x38]
mov dword [edx + 4], eax
mov dword [edx + 8], 0x42aaec
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov dword [edx], 0x80000000
jmp 0x404465
mov dword [ebp - 0x10], 6
push dword [ebp - 0x34]
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 - 0x10f0]
inc edx
call fcn.00408fa5
pop eax
mov dword [ebp - 0x10], 7
push 0xc
pop ecx
call fcn.00402224
mov ecx, dword [ebp - 0x10e8]
movsd xmm0, qword [ebp - 0x10f0]
mov edx, dword [ebp - 0x3c]
mov dword [edx + 4], eax
mov dword [edx + 8], 0x42aaec
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov dword [edx], 0x80000000
jmp 0x404454
push dword [ebp - 0x20]
call sub.winhttp.dll_WinHttpCloseHandle
push dword [ebp - 0x34]
call sub.winhttp.dll_WinHttpCloseHandle
push dword [ebp - 0x28]
call sub.winhttp.dll_WinHttpCloseHandle
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0x3c]
movsd xmm0, qword [ebp - 0xf0]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
mov ecx, dword [ebp - 0x5c]
call fcn.00408f0a
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x40]
call fcn.00408f0a
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x38]
call fcn.00408f0a
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x2c]
jmp 0x404474
mov dword [ebp - 0x10], 0xa
push dword [ebp - 0x20]
call sub.winhttp.dll_WinHttpCloseHandle
push dword [ebp - 0x34]
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 - 0x10f0]
inc edx
call fcn.00408fa5
pop eax
mov dword [ebp - 0x10], 0xb
push 0xc
pop ecx
call fcn.00402224
jmp 0x404421
push dword [ebp - 0x20]
call sub.winhttp.dll_WinHttpCloseHandle
push dword [ebp - 0x34]
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 - 0x10f0]
inc edx
call fcn.00408fa5
pop eax
mov dword [ebp - 0x10], 0xc
push 0xc
pop ecx
call fcn.00402224
mov ecx, dword [ebp - 0x10e8]
movsd xmm0, qword [ebp - 0x10f0]
mov edx, dword [ebp - 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x3c]
movsd qword [eax], xmm0
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0x42aaec
mov dword [ecx], 0x80000000
mov ecx, dword [ebp - 0x5c]
call fcn.00408f0a
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x38]
call fcn.00408f0a
mov ecx, dword [ebp - 0x68]
mov edx, edi
call fcn.00408f0a
mov ecx, dword [ebp - 0x74]
mov edx, esi
call fcn.00408f0a
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x10e4
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0x1000
push 0x42ab2c
call fcn.00429240
pop eax
jmp 0x4044aa
mov edx, dword [ebp - 0x10e8]
call fcn.004291b8
ud2