Function at 0x4014f0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407caf
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x40d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xb8], edi
xorps xmm0, xmm0
mov dword [ebp - 0xb0], 0
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push eax
push eax
push eax
push eax
mov dword [ebp - 4], eax
push 0x409358
mov dword [ebp - 0xb0], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x4018f0
cmp dword [esi + 0x14], 8
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0
mov eax, esi
movlpd qword [ebp - 0x90], xmm0
movlpd qword [ebp - 0x84], xmm0
movlpd qword [ebp - 0x7c], xmm0
movlpd qword [ebp - 0x74], xmm0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x9c], 0x3c
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x64], 0xffffffff
jb 0x4015f2
mov eax, dword [esi]
lea ecx, [ebp - 0x9c]
push ecx
push 0
push dword [esi + 0x10]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x4018e8
push dword [ebp - 0x88]
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x60], xmm0
call fcn.00406230
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48]
push dword [ebp - 0x6c]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push dword [ebp - 0x70]
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
call fcn.00406230
mov byte [ebp - 4], 2
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
push 0
push dword [ebp - 0x84]
cmovae eax, dword [ebp - 0x60]
push eax
push dword [ebp - 0xa8]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0xac], edx
test edx, edx
je 0x401862
xor ecx, ecx
mov eax, 0x800000
cmp dword [ebp - 0x90], 2
cmove ecx, eax
cmp dword [ebp - 0x34], 8
push ecx
push 0
push 0
push 0
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
push 0x40936c
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x401854
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x401851
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x401851
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40184b
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x401748
mov dword [ebp - 0x1c], esi
mov byte [ebp + esi - 0x2c], 0
jmp 0x40177e
cmp esi, 0xf
ja 0x401766
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebp + esi - 0x2c], 0
jmp 0x40177e
push ecx
push esi
mov byte [ebp - 0xb4], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0xb4]
push esi
call fcn.00406600
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x401815
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
setae byte [ebp - 0x9d]
add eax, ecx
cmp byte [ebp - 0x9d], 0
lea ecx, [ebp - 0x2c]
cmovne ecx, dword [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ebp - 0xa4]
call fcn.00405740
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x401809
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4017ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40183b
push ecx
push edx
call fcn.00406f0e
add esp, 8
cmp dword [ebp - 0x14], 0
ja 0x401707
jmp 0x40184b
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x40184b
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401841
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401841
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406f0e
add esp, 8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push dword [ebp - 0xac]
call esi
mov edi, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x401898
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40188e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4018d8
push ecx
push edx
call fcn.00406f0e
add esp, 8
mov ecx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp ecx, 8
jb 0x4018e8
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4018de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4018de
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406f0e
add esp, 8
push dword [ebp - 0xa8]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406ed0
mov esp, ebp
pop ebp
ret