Function at 0x4d2240
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x666fce
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x6d5ec0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea eax, [esi + 0x14]
lea edi, [esi + 0x10]
mov dword [ebp - 0x20], eax
movups xmmword [esi], xmm0
mov dword [eax], 0
mov dword [eax], 7
xor eax, eax
mov dword [edi], 0
mov dword [edi], 0
mov word [esi], ax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x14
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], 1
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ecx, dword [edi]
mov eax, dword [ebp - 0x10]
cmp eax, ecx
ja 0x4d22f7
lea ecx, [esi + 0x14]
mov dword [edi], eax
cmp dword [ecx], 7
mov dword [ebp - 0x18], esi
jbe 0x4d22e1
mov ecx, dword [esi]
lea edx, [esi + 0x10]
mov dword [ebp - 0x18], ecx
lea ecx, [esi + 0x14]
jmp 0x4d22e3
mov edx, edi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov word [esi + eax*2], cx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
jmp 0x4d230b
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0044c4b0
lea ecx, [esi + 0x14]
mov edx, edi
mov dword [ebp - 0x14], ecx
cmp dword [ecx], 7
mov eax, esi
jbe 0x4d2316
mov eax, dword [esi]
mov edi, edx
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push 0x14
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edx, dword [edi]
test edx, edx
je 0x4d243f
mov eax, dword [ebp - 0x14]
cmp dword [eax], 7
jbe 0x4d2345
mov ecx, dword [esi]
lea edi, [esi + 0x10]
mov eax, ecx
jmp 0x4d2349
mov eax, esi
mov ecx, esi
cmp word [ecx], 0
lea eax, [eax + edx*2]
jne 0x4d23cc
add ecx, 2
cmp ecx, eax
je 0x4d2370
nop dword [eax]
cmp word [ecx], 0
jne 0x4d23a0
add ecx, 2
cmp ecx, eax
jne 0x4d2360
lea edi, [esi + 0x10]
mov dword [edi], 0
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x4d2380
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
sub eax, 2
cmp word [eax], 0
je 0x4d23a0
sub eax, ecx
add eax, 2
sar eax, 1
push eax
push ecx
mov ecx, esi
call fcn.00446b90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
sub eax, 2
cmp word [eax], 0
jne 0x4d243f
mov ecx, eax
sub eax, 2
cmp word [eax], 0
je 0x4d23d5
mov eax, dword [esi + 0x10]
mov edi, ecx
mov dword [ebp + 8], eax
lea edx, [eax + eax]
sub edx, ecx
cmp dword [esi + 0x14], 7
jbe 0x4d2406
sub edi, dword [esi]
add edx, dword [esi]
sar edi, 1
sub eax, edi
sar edx, 1
cmp eax, edx
cmovb edx, eax
mov eax, dword [esi]
jmp 0x4d2417
sub edi, esi
add edx, esi
sar edi, 1
sub eax, edi
sar edx, 1
cmp eax, edx
cmovb edx, eax
mov eax, esi
lea ecx, [eax + edi*2]
mov eax, dword [ebp + 8]
sub eax, edx
mov dword [ebp + 8], eax
sub eax, edi
lea eax, [eax*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.00620e40
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x10], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret