Function at 0x4524a0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51899e
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov esi, ecx
cmp edi, ebx
jne 0x4524e3
lea eax, [ebx + 1]
jmp 0x4526be
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x4524f0
mov eax, dword [esi]
jmp 0x4524f2
mov eax, esi
push ebx
lea edx, [ebp - 0x50]
push edx
push ebx
push ebx
xor ecx, ecx
push 0x16
mov word [eax], cx
push edi
mov dword [ebp - 0x50], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, ebx
jne 0x4525a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x7a
je 0x4525a6
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0xfc]
push ecx
mov dword [eax], ebx
call fcn.00402bd0
push ebx
push ecx
lea edx, [ebp - 0xec]
push str.WinHttpQueryHeaders_failed:
push edx
mov dword [ebp - 4], 0
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0xfc]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 1
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x1c], 8
jb 0x45258a
mov eax, dword [ebp - 0x30]
push eax
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0xfc]
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
mov eax, 3
jmp 0x4526be
xor ebx, ebx
mov eax, dword [ebp - 0x50]
shr eax, 1
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00454760
push ebx
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 4], 2
mov ebx, dword [ebp - 0x24]
push ebx
push 0
push 0x16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x452671
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x54]
lea edx, [ebp - 0x1a4]
push edx
mov dword [esi], eax
call fcn.00402bd0
mov byte [ebp - 4], 3
mov eax, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x194]
push str.WinHttpQueryHeaders_failed:
push ecx
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x1a4]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 4
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x38], 8
jb 0x45264e
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 2
call fcn.00401820
test ebx, ebx
je 0x45266a
push ebx
call fcn.00469e1a
add esp, 4
mov eax, 3
jmp 0x4526be
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x50]
cmp eax, ecx
ja 0x452687
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0040a810
jmp 0x452693
sub eax, ecx
push 0
push eax
mov ecx, esi
call fcn.00416e60
cmp dword [esi + 0x14], 8
jb 0x45269b
mov esi, dword [esi]
mov eax, dword [ebp - 0x20]
sub eax, ebx
sar eax, 1
add eax, eax
push eax
push ebx
push esi
call fcn.004d3470
add esp, 0xc
test ebx, ebx
je 0x4526bc
push ebx
call fcn.00469e1a
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret 4