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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5254a4
mov eax, dword fs:[0]
push eax
mov eax, 0x3524
call fcn.0047d690
mov eax, dword [0x572374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3504], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x350c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3524], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3518], eax
xor ebx, ebx
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], ebx
je 0x45289d
lea ecx, [ebp - 0x34fc]
call fcn.00452fb0
push 4
push dword [0x53aa70]
mov eax, 0x50
mov dword [ebp - 0x10ac], 2
mov word [ebp - 0x10b0], ax
lea eax, [ebp - 0x34fc]
push 0x21
push eax
mov dword [ebp - 0x10a8], 4
call fcn.004c759b
push eax
call fcn.00405a80
add esp, 0x14
lea ecx, [ebp - 0x34fc]
call fcn.00452fb0
lea ecx, [ebp - 0x34fc]
call fcn.00452fb0
push esi
lea ecx, [ebp - 0x34fc]
call fcn.004539a0
test eax, eax
je 0x45289d
mov esi, dword [ebp - 0x10ac]
cmp esi, 2
je 0x452413
cmp esi, 3
jne 0x45289d
movzx edi, word [ebp - 0x10b0]
call fcn.004064e0
mov ecx, eax
test ecx, ecx
je 0x4528d1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3508], eax
lea ecx, [ebp - 0x30b4]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452444
sub ecx, edx
lea eax, [ebp - 0x30b4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3508]
call fcn.00406eb0
lea ecx, [ebp - 0x20b2]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452470
sub ecx, edx
lea eax, [ebp - 0x20b2]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3508]
call fcn.00405910
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x3530], ebx
test ebx, ebx
jne 0x4524d4
mov edx, dword [ebp - 0x3508]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45289b
mov ecx, dword [edx]
push edx
jmp 0x452896
push 0
push edi
lea eax, [ebp - 0x34ba]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x3514], edi
test edi, edi
jne 0x4524fa
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x4524ae
mov dword [ebp - 0x3500], 0
xor ecx, ecx
mov byte [ebp - 4], 4
cmp esi, 3
mov eax, 0x800000
mov esi, dword [ebp - 0x3508]
cmovne eax, ecx
push eax
push ecx
push ecx
push dword [ebp - 0x3518]
push esi
push dword [ebp - 0x3524]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x3500], eax
test eax, eax
jne 0x452548
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x45287a
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 4
lea eax, [ebp - 0x352c]
mov dword [ebp - 0x352c], 8
push eax
push 0x3f
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x32b8]
push eax
call edi
test eax, eax
jle 0x4525bc
lea eax, [ebp - 0x31b6]
push eax
call edi
test eax, eax
jle 0x4525bc
push 0
lea eax, [ebp - 0x31b6]
push eax
lea eax, [ebp - 0x32b8]
push eax
push 1
push 0
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
mov eax, dword [ebp - 0x3504]
test eax, eax
je 0x4525e2
push eax
call edi
push 0x10000000
push eax
mov eax, dword [ebp - 0x3504]
push eax
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
lea eax, [ebp - 0x3500]
push eax
mov eax, dword [ebp + 0x18]
push eax
push eax
push dword [ebp - 0x350c]
push 0
push 0
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
js 0x452857
push 0
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x452857
push 0x80
lea eax, [ebp - 0x90]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x3520], xmm0
call fcn.004a9b50
add esp, 0xc
mov dword [ebp - 0x350c], 0x80
lea eax, [ebp - 0x350c]
push 0
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 5
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [ebp - 0x3520]
push eax
push 0
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToInt64ExW]
mov edi, dword [ebp - 0x351c]
test edi, edi
jl 0x4526a4
mov edx, dword [ebp - 0x3520]
jg 0x452699
test edx, edx
je 0x4526a4
mov eax, dword [ebp + 0xc]
push edi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x3510]
push edx
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x3528], xmm0
push dword [ebp - 0x3524]
movlpd qword [ebp - 0x3510], xmm0
push dword [ebp - 0x3528]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x452857
cmp dword [ebp - 0x3510], 0
jne 0x452857
cmp dword [ebp - 0x350c], 0
jne 0x452857
lea eax, [ebp - 0x3504]
mov dword [ebp - 0x3504], 0
push eax
push dword [ebp - 0x3500]
xorps xmm0, xmm0
movlpd qword [ebp - 0x3510], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov edi, dword [ebp - 0x350c]
mov ebx, dword [ebp - 0x3510]
test eax, eax
je 0x4527e7
cmp dword [ebp - 0x3504], 0
jbe 0x4527e7
push 0x1000
lea eax, [ebp - 0x1090]
push 0
push eax
call fcn.004a9b50
add esp, 0xc
lea eax, [ebp - 0x3504]
push eax
push 0x1000
lea eax, [ebp - 0x1090]
push eax
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4527e7
mov edx, dword [ebp - 0x3504]
test edx, edx
je 0x4527e7
mov eax, dword [ebp + 0xc]
lea esi, [ebp - 0x3518]
push esi
push edx
mov dword [ebp - 0x3518], 0
lea edx, [ebp - 0x1090]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov esi, dword [ebp - 0x3508]
test eax, eax
js 0x4527e7
mov eax, dword [ebp - 0x3518]
cmp eax, dword [ebp - 0x3504]
jne 0x4527e7
add ebx, eax
mov dword [ebp - 0x3504], 0
lea eax, [ebp - 0x3504]
push eax
push dword [ebp - 0x3500]
adc edi, 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x452733
mov ecx, dword [ebp - 0x3520]
mov eax, dword [ebp - 0x351c]
cmp ebx, ecx
jne 0x4527fb
cmp edi, eax
je 0x452803
test ecx, ecx
jne 0x45280a
test eax, eax
jne 0x45280a
mov ebx, 1
jmp 0x45280c
xor ebx, ebx
mov eax, dword [ebp - 0x3500]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x452829
push eax
call edi
mov dword [ebp - 0x3500], 0
push dword [ebp - 0x3514]
call edi
push dword [ebp - 0x3530]
call edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45289d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45289d
mov eax, dword [ebp - 0x3500]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x452874
push eax
call edi
mov dword [ebp - 0x3500], 0
push dword [ebp - 0x3514]
call edi
push ebx
call edi
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45289b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4528b1
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d268
mov esp, ebp
pop ebp
ret 0x2c
push 0x80004005
call fcn.00405c70
int3