Function at 0x450480
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6804
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x53ba20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
push eax
push esi
push esi
push 0x13
push dword [ebp + 8]
mov dword [ebp - 0x18], edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4504f1
call ebx
cmp eax, 0x7a
je 0x4504f1
call ebx
mov edi, eax
test edi, edi
jle 0x450534
movzx edi, di
or edi, 0x80070000
jmp 0x450534
push dword [ebp - 0x18]
call fcn.004c8c9a
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x18]
push 0
push eax
push ebx
push 0
push 0x13
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x450547
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x45052b
movzx edi, di
or edi, 0x80070000
push ebx
call fcn.004c8c7f
add esp, 4
or ebx, 0xffffffff
test edi, edi
js 0x4506e4
test esi, esi
je 0x450596
mov eax, dword [esi]
jmp 0x450598
push 0xc
call fcn.004c3423
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x450583
push ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x450585
test ebx, ebx
jne 0x450874
jmp 0x450585
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x45087e
jmp 0x45052b
xor eax, eax
mov ecx, 0x50479c
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4505c6
test dx, dx
je 0x4505c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4505c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4505a0
xor eax, eax
jmp 0x4505cb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4506e4
mov edi, dword [ebp + 8]
nop word [eax + eax]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4506d7
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.004c393e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4506c8
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push 0
push ebx
call fcn.004c52c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x45063f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x4506ad
push ebx
lea ecx, [ebp - 0x18]
call fcn.00431dc0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.00405140
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
test edi, edi
je 0x4506aa
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
dec eax
jne 0x4506a3
mov eax, dword [edi]
test eax, eax
je 0x450681
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x450698
push eax
call fcn.004c3453
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.004c3279
add esp, 8
mov dword [ebp - 0x18], 0
mov edi, dword [ebp + 8]
push ebx
call fcn.004c3453
add esp, 4
cmp dword [ebp - 0x10], 0
ja 0x4505e0
mov edi, dword [ebp - 0x14]
jmp 0x45081a
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
jmp 0x45081a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x45081a
test esi, esi
je 0x4506ec
mov eax, dword [esi]
jmp 0x4506ee
xor eax, eax
mov ecx, 0x5047ac
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x450719
test dx, dx
je 0x450715
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x450719
add eax, 4
add ecx, 4
test dx, dx
jne 0x4506f3
xor eax, eax
jmp 0x45071e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45072c
mov edi, 0xe8
jmp 0x45081d
mov dword [ebp + 8], esi
test esi, esi
je 0x45073b
lock inc dword [esi + 8]
mov eax, dword [esi]
jmp 0x45073d
xor eax, eax
mov ebx, esi
mov edi, esi
mov ecx, 0x50479c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45076c
test dx, dx
je 0x450768
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45076c
add eax, 4
add ecx, 4
test dx, dx
jne 0x450746
xor eax, eax
jmp 0x450771
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45077c
xor edi, edi
jmp 0x450812
test esi, esi
cmove edi, ebx
test edi, edi
je 0x450789
mov eax, dword [esi]
jmp 0x45078b
xor eax, eax
mov ecx, 0x5047a4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4507b6
test dx, dx
je 0x4507b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4507b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x450790
xor eax, eax
jmp 0x4507bb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4507c4
lea edi, [eax + 5]
jmp 0x450812
test esi, esi
je 0x4507cc
mov eax, dword [esi]
jmp 0x4507ce
xor eax, eax
mov ecx, 0x5047ac
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4507f9
test dx, dx
je 0x4507f5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4507f9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4507d3
xor eax, eax
jmp 0x4507fe
sbb eax, eax
or eax, 1
test eax, eax
mov ebx, 0x1f
mov ecx, 0x5b4
cmove ebx, ecx
mov dword [ebp - 0x14], ebx
mov edi, ebx
lea ecx, [ebp + 8]
call fcn.00404d60
or ebx, 0xffffffff
test esi, esi
je 0x45085e
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x45085e
mov eax, dword [esi]
test eax, eax
je 0x45083c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x450853
push eax
call fcn.004c3453
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004c3279
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 esp, ebp
pop ebp
ret 8
push 0x8007000e
call fcn.004c2e60
push 0x8007000e
call fcn.004c2e60
int3