Function at 0x487000
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbfad
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4ec1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 8]
call fcn.004545c0
cmp dword [eax + 0x120], 0
jne 0x487100
push 0
push dword [edi + 0x40]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x487275
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x20
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0041f0d0
movups xmm0, xmmword [str.WinHttpQueryDataAvaliable]
mov dword [ebp - 0x18], 0x19
mov dword [ebp - 0x14], 0x1f
movups xmmword [eax], xmm0
mov dword [ebp - 0x28], eax
movq xmm0, qword [0x4c51d0]
movq qword [eax + 0x10], xmm0
mov cl, byte [0x4c51d8]
mov byte [eax + 0x18], cl
mov byte [eax + 0x19], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00483050
add esp, 0xc
push eax
push esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004552a0
lea ecx, [ebp - 0x40]
call fcn.004178c0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x487275
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48726b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487290
jmp 0x48726b
mov ecx, dword [edi + 8]
call fcn.004545c0
mov esi, dword [eax + 0x120]
test esi, esi
mov eax, 0x10000
cmove esi, eax
cmp dword [edi + 0x3c], 0
jne 0x4871b1
cmp dword [ebp + 0xc], esi
jae 0x48713f
cmp byte [ebp + 0x10], 0
jne 0x48713f
push dword [edi + 0x2c]
mov ecx, edi
push dword [edi + 0x28]
call fcn.00454720
jmp 0x487275
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00453ff0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x487295
mov eax, dword [ecx]
push esi
mov eax, dword [eax + 0x70]
call eax
test eax, eax
jne 0x487184
mov eax, dword [edi + 0x94]
lea ecx, [edi + 0x90]
sub eax, dword [ecx]
cmp esi, eax
jbe 0x487180
push esi
call fcn.00474ac0
xor eax, eax
jmp 0x48718a
mov dword [edi + 0x9c], esi
mov dword [edi + 0x8c], eax
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x4871a0
mov eax, dword [edi + 0x90]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00437920
jmp 0x4871e7
mov ecx, dword [edi + 0xa0]
mov eax, dword [edi + 0xa8]
sub eax, ecx
mov dword [ebp - 0x5c], ecx
cmp eax, esi
jae 0x4871e7
cmp esi, 0x7fffffff
ja 0x4872b0
push esi
lea ecx, [edi + 0xa0]
call fcn.00481a40
mov eax, dword [edi + 0xa0]
mov dword [ebp - 0x5c], eax
push 0
push esi
push dword [ebp - 0x5c]
push dword [edi + 0x40]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x487275
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c51e4]
mov esi, eax
movq xmm0, qword [0x4c51dc]
mov dword [ebp - 0x20], ecx
mov cx, word [0x4c51e8]
mov word [ebp - 0x1c], cx
mov cl, byte [0x4c51ea]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0xf
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1a], cl
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00483050
add esp, 0xc
push eax
push esi
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004552a0
lea ecx, [ebp - 0x58]
jmp 0x4870c4
push edx
push ecx
call fcn.0048c9bc
add esp, 8
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.0048c98b
mov esp, ebp
pop ebp
ret
call fcn.0049166f
push str.Invalid_streambuf_object
lea ecx, [ebp - 0x1c]
call fcn.0044ddb0
push 0x4e9048
lea eax, [ebp - 0x1c]
push eax
call fcn.0048e6f7
call fcn.004051a0
int3