Function at 0x45fd70
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8f3e
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x55a3d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov esi, edx
cmp edi, ebx
jne 0x45fdb6
lea eax, [ebx + 1]
jmp 0x45ffb9
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x45fdc3
mov eax, dword [esi]
jmp 0x45fdc5
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 0x45fe8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x7a
je 0x45fe8a
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0xec]
push ecx
mov dword [eax], ebx
call fcn.00403200
lea edx, [ebp - 0xec]
push str.WinHttpQueryHeaders_failed:
xor edi, edi
push edx
mov dword [ebp - 4], edi
call fcn.00404d50
add esp, 8
push ebx
lea eax, [ebp - 0xec]
push eax
call fcn.004024b0
lea esi, [ebp - 0x30]
lea eax, [ebp - 0xec]
call fcn.00402e30
mov ecx, esi
push ecx
push 1
mov byte [ebp - 4], 1
call fcn.00423a40
add esp, 8
cmp dword [ebp - 0x1c], 8
jb 0x45fe5e
mov edx, dword [ebp - 0x30]
push edx
call fcn.004b5907
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xec]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00401690
mov eax, 3
jmp 0x45ffb9
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.00461ca0
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 0x45ff6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x54]
lea edx, [ebp - 0x184]
push edx
mov dword [esi], eax
call fcn.00403200
lea eax, [ebp - 0x184]
push str.WinHttpQueryHeaders_failed:
push eax
mov byte [ebp - 4], 3
call fcn.00404d50
mov ecx, dword [esi]
add esp, 8
push ecx
lea edx, [ebp - 0x184]
push edx
call fcn.004024b0
lea esi, [ebp - 0x4c]
lea eax, [ebp - 0x184]
call fcn.00402e30
mov eax, esi
push eax
push 1
mov byte [ebp - 4], 4
call fcn.00423a40
add esp, 8
cmp dword [ebp - 0x38], 8
jb 0x45ff35
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b5907
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], dx
mov byte [ebp - 4], 2
call fcn.00401690
test ebx, ebx
je 0x45ff65
push ebx
call fcn.004b5907
add esp, 4
mov eax, 3
jmp 0x45ffb9
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x50]
cmp eax, ecx
ja 0x45ff82
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00412130
jmp 0x45ff8e
sub eax, ecx
push 0
push eax
mov ecx, esi
call fcn.0041ef30
cmp dword [esi + 0x14], 8
jb 0x45ff96
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.004b5c40
add esp, 0xc
test ebx, ebx
je 0x45ffb7
push ebx
call fcn.004b5907
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b58f8
mov esp, ebp
pop ebp
ret 4