Function at 0x40b630
Capabilities:
Read http header

Disassembly:
push ebp
lea ebp, [esp - 0xc40]
sub esp, 0xc40
push 0xffffffffffffffff
push 0x606c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6aae14]
xor eax, ebp
mov dword [ebp + 0xc3c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea esi, [ebx + 0x47c]
push 0x60f83c
push esi
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], esi
call fcn.004085b0
add esp, 8
cmp dword [0x6acea4], 0
je 0x40b6a9
push esi
push 0x60e7f4
push 0
call fcn.004f0f30
add esp, 0xc
push esi
lea eax, [ebx + 0x350]
push 0x60e7f4
push eax
call fcn.004f0f30
mov ecx, dword [ebx + 0x46c]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
add esp, 0xc
push 0
lea esi, [ebx + 0x470]
push esi
push 0
push 0
push 0x16
push ecx
mov dword [esi], 0
call edi
test eax, eax
jne 0x40b7b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp eax, 0x7a
je 0x40b7b3
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp + 0xa22]
push eax
mov word [ebp + 0xa20], dx
call fcn.005dfd60
xor ecx, ecx
push 0x40e
push ecx
lea edx, [ebp + 2]
push edx
mov word [ebp], cx
call fcn.005dfd60
mov esi, dword [ebp - 0x1c]
lea eax, [ebp]
push esi
push eax
call fcn.004086b0
mov edx, dword [ebp - 0x18]
add esp, 0x20
lea ecx, [ebp]
push ecx
push edx
lea eax, [ebp + 0xa20]
push str._s:_Error___s__encountered.
push eax
call fcn.004085b0
add esp, 0x10
lea ecx, [ebp + 0xa20]
push ecx
lea ecx, [ebp + 0xc20]
call fcn.0040b590
push 0xffffffffffffffff
push 0
lea edx, [ebp + 0xc20]
push edx
lea ecx, [ebx + 0x230]
mov byte [ebp - 4], 1
mov dword [ebx + 0x22c], 1
call fcn.0040b0a0
cmp dword [ebp + 0xc38], 8
mov dword [ebx + 0x228], esi
jb 0x40b7ac
mov eax, dword [ebp + 0xc24]
push eax
call fcn.005e0d9a
add esp, 4
xor al, al
jmp 0x40b9d7
mov eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005ddec6
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40b9d4
push 0
push esi
push eax
mov eax, dword [ebx + 0x46c]
push 0
push 0x16
push eax
call edi
test eax, eax
je 0x40b934
mov edi, dword [ebp - 0x1c]
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b800
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x8a0]
push edi
mov ecx, esi
call fcn.0040b1a0
cmp dword [esi + 0x18], 8
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x18], 0
jb 0x40b834
mov esi, dword [esi + 4]
jmp 0x40b837
add esi, 4
lea ecx, [ebp - 0x18]
push ecx
push esi
call fcn.004da960
mov eax, dword [ebp - 0x18]
add esp, 8
test eax, eax
je 0x40b9c7
push 0x20
push eax
call fcn.005e0940
mov edi, eax
add esp, 8
test edi, edi
je 0x40b8e9
xor eax, eax
inc edi
mov byte [ebp + 0xc2c], 0
mov dword [ebp + 0xc2d], eax
mov dword [ebp + 0xc31], eax
mov dword [ebp + 0xc35], eax
mov word [ebp + 0xc39], ax
mov byte [ebp + 0xc3b], al
xor esi, esi
nop
cmp esi, 4
jge 0x40b8b7
movzx eax, byte [esi + edi]
cmp al, 0x20
je 0x40b8b7
push eax
call fcn.004da320
add esp, 4
test eax, eax
je 0x40b8b7
mov dl, byte [esi + edi]
mov byte [ebp + esi + 0xc2c], dl
inc esi
jmp 0x40b890
lea eax, [ebp + 0xc2c]
push eax
call fcn.005e0909
add esp, 4
mov dword [ebx + 0x18], eax
cmp dword [0x6acea4], 0
je 0x40b923
push eax
lea ecx, [ebp + 0xc2c]
push ecx
push str.RC:__s___u_
push 0
call fcn.004f0f30
add esp, 0x10
cmp dword [0x6acea4], 0
je 0x40b923
push str._Response_Header_Start_
push 0
call fcn.004f0f30
mov edx, dword [ebp - 0x18]
add esp, 8
push edx
push 0x60c800
push 0
call fcn.004f0f30
add esp, 0xc
push str._Response_Header_End_
push 0
call fcn.004f0f30
add esp, 8
mov eax, dword [ebp - 0x18]
push eax
call fcn.005e0865
add esp, 4
jmp 0x40b9c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp + 0x822]
push edx
mov esi, eax
mov word [ebp + 0x820], cx
call fcn.005dfd60
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp + 0x412]
push ecx
mov word [ebp + 0x410], ax
call fcn.005dfd60
lea edx, [ebp + 0x410]
push esi
push edx
call fcn.004086b0
mov ecx, dword [ebp - 0x18]
add esp, 0x20
lea eax, [ebp + 0x410]
push eax
push ecx
lea edx, [ebp + 0x820]
push str._s:_Error___s__encountered.
push edx
call fcn.004085b0
add esp, 0x10
cmp dword [0x6acea4], 0
je 0x40b9c0
lea eax, [ebp + 0x820]
push eax
push 0x60e7f4
push 0
call fcn.004f0f30
add esp, 0xc
mov byte [ebp - 0x11], 0
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x40b9d4
push edi
call fcn.005e132a
add esp, 4
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc3c]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0xc40
mov esp, ebp
pop ebp
ret