Function at 0x522390
Capabilities:
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3848
mov eax, dword fs:[0]
push eax
mov eax, 0x4264
call fcn.0056f1d0
mov eax, dword [0x63a404]
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
xor edi, edi
mov dword [ebp - 0x421c], edi
mov dword [ebp - 0x4218], edi
mov dword [ebp - 4], edi
xorps xmm0, xmm0
mov dword [ebp - 0x426c], edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x4264], edi
movlpd qword [ebp - 0x4258], xmm0
movlpd qword [ebp - 0x4250], xmm0
movlpd qword [ebp - 0x4248], xmm0
movlpd qword [ebp - 0x423c], xmm0
mov dword [ebp - 0x4270], 0x3c
mov dword [ebp - 0x4260], eax
mov dword [ebp - 0x425c], 0x100
mov dword [ebp - 0x4240], 0xffffffff
mov dword [ebp - 0x4268], 0xffffffff
test ecx, ecx
je 0x5225e1
call fcn.00545f90
mov esi, eax
mov dword [ebp - 0x422c], esi
test esi, esi
je 0x5225cc
lea eax, [ebp - 0x4270]
push eax
push edi
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x5225c1
push edi
push dword [ebp - 0x4258]
lea eax, [ebp - 0x210]
push eax
push dword [0x647b18]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
test ebx, ebx
je 0x5225c1
push edi
push 0x4000
push 0x5221a0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
xor eax, eax
mov ecx, 0x800000
cmp dword [ebp - 0x4264], 2
cmove eax, ecx
push eax
push edi
push edi
push edi
push dword [ebp - 0x4244]
push 0x623950
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x4214], eax
test eax, eax
je 0x5225ba
lea ecx, [ebp - 0x421c]
push ecx
push edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov esi, dword [ebp - 0x4214]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push edi
lea eax, [ebp - 0x4220]
mov dword [ebp - 0x4224], edi
push eax
lea eax, [ebp - 0x4224]
mov dword [ebp - 0x4220], 4
push eax
push edi
push 0x20000013
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call esi
push str.Location
lea ecx, [ebp - 0x4234]
mov dword [ebp - 0x4228], 0x2000
call fcn.005447b0
push edi
lea ecx, [ebp - 0x4228]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x4210]
push ecx
mov ecx, eax
call fcn.00545f90
push eax
push 0xffff
push dword [ebp - 0x4214]
call esi
lea ecx, [ebp - 0x4234]
mov byte [ebp - 4], 0
call fcn.004ffe40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x4218], edi
jle 0x5225a8
push 8
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x4230], eax
lea ecx, [ebp - 0x421c]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.005448d0
mov edi, eax
push dword [ebp - 0x4214]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp - 0x422c]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 2
push esi
call fcn.0056ea89
add esp, 8
mov eax, dword [ebp - 0x421c]
test eax, eax
je 0x5225e1
push 2
push eax
call fcn.0056ea89
add esp, 8
mov eax, edi
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.0056e5b3
mov esp, ebp
pop ebp
ret