Function at 0x48b5c0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520df7
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x56e754]
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 edi, ecx
mov dword [ebp - 0x22c], edi
mov esi, dword [ebp + 8]
push ecx
push esi
mov dword [ebp - 0x240], edi
call fcn.00425c20
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x28]
cmp eax, 0xffffffff
jne 0x48b626
mov edx, esi
mov ecx, str.CloudFront_GET_failed_when_trying_to_create_stream__url:__s
call fcn.0042e1a0
jmp 0x48b7f3
cmp byte [edi], 0
mov dword [ebp - 0x234], 0x200
je 0x48b719
push 0
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x210]
push eax
push str.X_Amz_Cf_Id
push 0xffff
push dword [edi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x48b697
lea ecx, [ebp - 0x228]
call fcn.00424730
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x48b677
mov eax, dword [eax]
push eax
mov edx, esi
mov ecx, str.CloudFront_GET_succeeded_but_was_unable_to_query_X_Amz_Cf_Id_from_HTTP_headers__url:__s__error:__s_.
call fcn.0041c5c0
add esp, 4
lea ecx, [ebp - 0x228]
call fcn.0041b400
jmp 0x48b7f3
lea eax, [ebp - 0x210]
mov dword [ebp - 0x22c], esi
mov edx, 0x57c478
mov dword [ebp - 0x230], eax
lea ecx, [ebp - 0x23c]
call fcn.004397a0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, dword [eax]
push str.CloudFront_GET_succeeded__url:__s__X_Amz_Cf_Id:__s_
push 1
call fcn.0041ee50
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x238]
test ebx, ebx
je 0x48b7f3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x48b7f3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x48b7f3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
jmp 0x48b7f3
add eax, 0xffffff38
cmp eax, 0x64
jb 0x48b7f3
push 0
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x210]
push eax
push str.X_Amz_Cf_Id
push 0xffff
push dword [edi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x48b782
lea ecx, [ebp - 0x228]
call fcn.00424730
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x48b765
mov eax, dword [eax]
push eax
mov edx, esi
mov ecx, str.CloudFront_GET_failed._Unable_to_query_X_Amz_Cf_Id_from_HTTP_headers__url:__s__error:__s_
call fcn.0042de50
add esp, 4
lea ecx, [ebp - 0x228]
call fcn.0041b400
jmp 0x48b7f3
lea eax, [ebp - 0x210]
mov dword [ebp - 0x230], esi
mov edx, 0x57c478
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x23c]
call fcn.004397a0
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [eax]
push str.CloudFront_GET_failed__url:__s__X_Amz_Cf_Id:__s_
push 4
call fcn.0041ee50
mov byte [ebp - 4], 6
mov ebx, dword [ebp - 0x238]
test ebx, ebx
je 0x48b7f3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x48b7f3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x48b7f3
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
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.004ca771
mov esp, ebp
pop ebp
ret 8